Don't use dispatch_release() under ARC in OS X 10.8 or iOS 6.0 and later

This commit is contained in:
Pierre-Olivier Latour
2014-01-23 11:33:33 -08:00
parent 965e111280
commit 7c8205caa0
3 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ static void _NetServiceClientCallBack(CFNetServiceRef service, CFStreamError* er
}
dispatch_source_cancel(_source); // This will close the socket
dispatch_release(_source);
ARC_DISPATCH_RELEASE(_source);
_source = NULL;
LOG_VERBOSE(@"%@ stopped", [self class]);