Skip to content

Commit

Permalink
Bug fix for issue robbiehanson#66 - Will leak SSLContexts on iOS beca…
Browse files Browse the repository at this point in the history
…use SSLContext is a Core Foundation type
  • Loading branch information
robbiehanson committed Jun 17, 2012
1 parent cba9da6 commit 19ffd8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GCD/GCDAsyncSocket.m
Expand Up @@ -2673,8 +2673,9 @@ - (void)closeWithError:(NSError *)error

SSLClose(sslContext);

#if !TARGET_OS_IPHONE
// SSLDisposeContext doesn't exist in iOS for some odd reason.
#if TARGET_OS_IPHONE
CFRelease(sslContext);
#else
SSLDisposeContext(sslContext);
#endif

Expand Down

0 comments on commit 19ffd8f

Please sign in to comment.