Fixed crash in special case for custom callback queues
- Added a line for setting _successCallbackQueue to NULL when releasing the call back queue in the setter - Added a line for setting _failureCallbackQueue to NULL when releasing the call back queue in the setter
This commit is contained in:
parent
a0967f5d4f
commit
1e78a5b2f9
1 changed files with 2 additions and 0 deletions
|
|
@ -135,6 +135,7 @@ static NSString * AFStringFromIndexSet(NSIndexSet *indexSet) {
|
||||||
if (successCallbackQueue != _successCallbackQueue) {
|
if (successCallbackQueue != _successCallbackQueue) {
|
||||||
if (_successCallbackQueue) {
|
if (_successCallbackQueue) {
|
||||||
dispatch_release(_successCallbackQueue);
|
dispatch_release(_successCallbackQueue);
|
||||||
|
_successCallbackQueue = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (successCallbackQueue) {
|
if (successCallbackQueue) {
|
||||||
|
|
@ -148,6 +149,7 @@ static NSString * AFStringFromIndexSet(NSIndexSet *indexSet) {
|
||||||
if (failureCallbackQueue != _failureCallbackQueue) {
|
if (failureCallbackQueue != _failureCallbackQueue) {
|
||||||
if (_failureCallbackQueue) {
|
if (_failureCallbackQueue) {
|
||||||
dispatch_release(_failureCallbackQueue);
|
dispatch_release(_failureCallbackQueue);
|
||||||
|
_failureCallbackQueue = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (failureCallbackQueue) {
|
if (failureCallbackQueue) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue