Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #294 from kirsplatrick/callbackQueue-fix

Fixed crash in special case for custom callback queues
  • Loading branch information...
commit 4a354fda24e55cc4b0b0d5fbdd226695c0fff1c1 2 parents b91e2eb + 1e78a5b
@mattt mattt authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  AFNetworking/AFHTTPRequestOperation.m
View
2  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) {
Please sign in to comment.
Something went wrong with that request. Please try again.