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
+2 -2
View File
@@ -201,7 +201,7 @@ static dispatch_queue_t _formatterQueue = NULL;
#endif
});
[self _writeBuffer:buffer withCompletionBlock:block];
dispatch_release(buffer);
ARC_DISPATCH_RELEASE(buffer);
}
- (void)_writeHeadersWithCompletionBlock:(WriteHeadersCompletionBlock)block {
@@ -226,7 +226,7 @@ static dispatch_queue_t _formatterQueue = NULL;
}
}];
dispatch_release(wrapper);
ARC_DISPATCH_RELEASE(wrapper);
} else if (result < 0) {
LOG_ERROR(@"Failed reading response body on socket %i (error %i)", _socket, (int)result);
block(NO);