kean/DFImageManager

DFURLImageFetcher doesn't deallocate because of the NSURLSession delegate

Closed this issue · 1 comments

kean commented

The session object keeps a strong reference to the delegate until your app explicitly invalidates the session. If you do not invalidate the session by calling the invalidateAndCancel or resetWithCompletionHandler: method, your app leaks memory.

kean commented

Done, add -[DFImageFetching invalidate] method