Permalink
Browse files

Merge pull request #294 from kirsplatrick/callbackQueue-fix

Fixed crash in special case for custom callback queues
  • Loading branch information...
Mattt Thompson
Mattt Thompson committed Apr 24, 2012
2 parents b91e2eb + 1e78a5b commit 4a354fda24e55cc4b0b0d5fbdd226695c0fff1c1
Showing with 2 additions and 0 deletions.
  1. +2 −0 AFNetworking/AFHTTPRequestOperation.m
@@ -152,6 +152,7 @@ - (void)setSuccessCallbackQueue:(dispatch_queue_t)successCallbackQueue {
if (successCallbackQueue != _successCallbackQueue) {
if (_successCallbackQueue) {
dispatch_release(_successCallbackQueue);
+ _successCallbackQueue = NULL;
}
if (successCallbackQueue) {
@@ -165,6 +166,7 @@ - (void)setFailureCallbackQueue:(dispatch_queue_t)failureCallbackQueue {
if (failureCallbackQueue != _failureCallbackQueue) {
if (_failureCallbackQueue) {
dispatch_release(_failureCallbackQueue);
+ _failureCallbackQueue = NULL;
}
if (failureCallbackQueue) {

0 comments on commit 4a354fd

Please sign in to comment.