Merge pull request #530 from blakewatters/bugfix/release-reachability-reference
Fix for reachability release issue #529
This commit is contained in:
commit
b43345b8c8
1 changed files with 1 additions and 0 deletions
|
|
@ -366,6 +366,7 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {}
|
||||||
if (_networkReachability) {
|
if (_networkReachability) {
|
||||||
SCNetworkReachabilityUnscheduleFromRunLoop(_networkReachability, CFRunLoopGetMain(), (CFStringRef)NSRunLoopCommonModes);
|
SCNetworkReachabilityUnscheduleFromRunLoop(_networkReachability, CFRunLoopGetMain(), (CFStringRef)NSRunLoopCommonModes);
|
||||||
CFRelease(_networkReachability);
|
CFRelease(_networkReachability);
|
||||||
|
_networkReachability = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue