Fix the SDWebImageDownloadStopNotification does not get removed on dealloc

This commit is contained in:
DreamPiggy 2020-02-27 16:31:54 +08:00
parent b395243d37
commit f607e909bc
1 changed files with 1 additions and 0 deletions

View File

@ -514,6 +514,7 @@ didReceiveResponse:(NSURLResponse *)response
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self name:SDWebImageDownloadReceiveResponseNotification object:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self name:SDWebImageDownloadStopNotification object:nil];
}
- (instancetype)initWithDownloadOperation:(NSOperation<SDWebImageDownloaderOperation> *)downloadOperation {