Skip to content

Commit 0a66c40

Browse files
johnno1962Pushkar Kulkarni
authored andcommitted
URLSessionTask retain cycle and memory leak fix
1 parent e09b7f7 commit 0a66c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/URLSession/URLSessionTask.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ open class URLSessionTask : NSObject, NSCopying {
2929
internal var suspendCount = 1
3030
internal var session: URLSessionProtocol! //change to nil when task completes
3131
internal let body: _Body
32-
fileprivate var _protocol: URLProtocol! = nil
32+
fileprivate var _protocol: URLProtocol? = nil
3333
private let syncQ = DispatchQueue(label: "org.swift.URLSessionTask.SyncQ")
3434

3535
/// All operations must run on this queue.

0 commit comments

Comments
 (0)