Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Fixed retain cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
swisspol committed Apr 1, 2014
1 parent df95ecb commit 33efd2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CGDWebServer/GCDWebServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ - (void)addGETHandlerForBasePath:(NSString*)basePath directoryPath:(NSString*)di
#if __has_feature(objc_arc)
__unsafe_unretained GCDWebServer* server = self;
#else
GCDWebServer* server = self;
__block GCDWebServer* server = self;
#endif
[self addHandlerWithMatchBlock:^GCDWebServerRequest *(NSString* requestMethod, NSURL* requestURL, NSDictionary* requestHeaders, NSString* urlPath, NSDictionary* urlQuery) {

Expand Down

0 comments on commit 33efd2a

Please sign in to comment.