Skip to content

Commit 89aa966

Browse files
committed
Fix memory issue.
1 parent 472dff1 commit 89aa966

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

STNetTaskQueue/STHTTPNetTaskQueueHandler.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ @interface STHTTPNetTaskQueueHandlerOperation : NSObject <NSURLSessionDataDelega
8383

8484
@property (nonatomic, strong) STNetTaskQueue *queue;
8585
@property (nonatomic, strong) STHTTPNetTask *task;
86-
@property (nonatomic, strong) NSURLSession *session;
86+
@property (nonatomic, weak) NSURLSession *session;
8787
@property (nonatomic, strong) NSURL *baseURL;
8888

8989
- (void)start;
@@ -220,8 +220,6 @@ - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didComp
220220
}
221221
[_queue task:_task didFailWithError:error];
222222
}
223-
224-
task.operation = nil; // Release the operation
225223
}
226224

227225
#pragma makr - Response data parsing methods

0 commit comments

Comments
 (0)