Permalink
Browse files

Merge branch 'experimental-reachability-leak-fix'

  • Loading branch information...
2 parents 6b892ae + 314afe9 commit 2ff2fd5f061fa8eef191d56c432540e0882c26ea @mattt mattt committed Dec 27, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 AFNetworking/AFHTTPClient.m
@@ -310,7 +310,11 @@ static void AFNetworkReachabilityCallback(SCNetworkReachabilityRef __unused targ
return (__bridge_retained const void *)([(__bridge AFNetworkReachabilityStatusBlock)info copy]);
}
-static void AFNetworkReachabilityReleaseCallback(__unused const void *info) {}
+static void AFNetworkReachabilityReleaseCallback(const void *info) {
+ if (info) {
+ CFRelease(info);
+ }
+}
- (void)startMonitoringNetworkReachability {
[self stopMonitoringNetworkReachability];

0 comments on commit 2ff2fd5

Please sign in to comment.