From f607e909bce79708cb7b5606c7f11e44574f4bfd Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Thu, 27 Feb 2020 16:31:54 +0800 Subject: [PATCH] Fix the SDWebImageDownloadStopNotification does not get removed on dealloc --- SDWebImage/Core/SDWebImageDownloader.m | 1 + 1 file changed, 1 insertion(+) diff --git a/SDWebImage/Core/SDWebImageDownloader.m b/SDWebImage/Core/SDWebImageDownloader.m index d7deee95..3d354add 100644 --- a/SDWebImage/Core/SDWebImageDownloader.m +++ b/SDWebImage/Core/SDWebImageDownloader.m @@ -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 *)downloadOperation {