Fix the SDWebImageDownloadStopNotification does not get removed on dealloc
This commit is contained in:
parent
b395243d37
commit
f607e909bc
|
@ -514,6 +514,7 @@ didReceiveResponse:(NSURLResponse *)response
|
||||||
|
|
||||||
- (void)dealloc {
|
- (void)dealloc {
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver:self name:SDWebImageDownloadReceiveResponseNotification object:nil];
|
[[NSNotificationCenter defaultCenter] removeObserver:self name:SDWebImageDownloadReceiveResponseNotification object:nil];
|
||||||
|
[[NSNotificationCenter defaultCenter] removeObserver:self name:SDWebImageDownloadStopNotification object:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype)initWithDownloadOperation:(NSOperation<SDWebImageDownloaderOperation> *)downloadOperation {
|
- (instancetype)initWithDownloadOperation:(NSOperation<SDWebImageDownloaderOperation> *)downloadOperation {
|
||||||
|
|
Loading…
Reference in New Issue