Fix the crash when using NSCache delegate with SDMemoryCache default implementation on dealloc
This commit is contained in:
parent
6ea9a7640a
commit
9b4e6286fc
|
@ -42,6 +42,7 @@
|
|||
|
||||
- (void)dealloc {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
|
||||
self.delegate = nil;
|
||||
}
|
||||
|
||||
- (instancetype)initWithConfig:(SDImageCacheConfig *)config {
|
||||
|
|
Loading…
Reference in New Issue