Skip to content

Commit 472dff1

Browse files
committed
Fix memory issue.
1 parent 4ba9900 commit 472dff1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

STNetTaskQueue/STHTTPNetTaskQueueHandler.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didComp
220220
}
221221
[_queue task:_task didFailWithError:error];
222222
}
223+
224+
task.operation = nil; // Release the operation
223225
}
224226

225227
#pragma makr - Response data parsing methods

0 commit comments

Comments
 (0)