Skip to content

Commit

Permalink
Fixed memory leak in CBLListener
Browse files Browse the repository at this point in the history
From #1921, the leak is caused by the circular references between CBLHTTPConnection and CBLHTTPListener. Making the listener property in CBLHTTPServer as a weak reference should fix the issue.
  • Loading branch information
pasin committed Oct 9, 2017
1 parent 3b701b3 commit 099e588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Listener/CBLHTTPConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/** Trivial HTTPServer subclass that just adds synthesized `listener` and `cblServer` properties. */
@interface CBLHTTPServer : HTTPServer

@property (retain) CBLListener* listener;
@property (weak) CBLListener* listener;
@property (retain) CBL_Server* cblServer;

@end

0 comments on commit 099e588

Please sign in to comment.