[Issue #696] Potentially fixing leak for reachability callback block
This commit is contained in:
parent
732cd2da02
commit
314afe9dc0
1 changed files with 5 additions and 1 deletions
|
|
@ -308,7 +308,11 @@ static const void * AFNetworkReachabilityRetainCallback(const void *info) {
|
|||
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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue