feat(ios): cancel image load when unmounted (#787)

This commit is contained in:
Numan 2021-09-15 14:35:39 +05:00 committed by GitHub
parent 908267f788
commit f1588beec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#import "FFFastImageView.h"
#import <SDWebImage/UIImage+MultiFormat.h>
#import <SDWebImage/UIView+WebCache.h>
@interface FFFastImageView()
@ -228,5 +229,8 @@
}];
}
@end
- (void)dealloc {
[self sd_cancelCurrentImageLoad];
}
@end