From f1588beec0e0684d99b10a3a9e8824cfd795f998 Mon Sep 17 00:00:00 2001 From: Numan <36044436+nomi9995@users.noreply.github.com> Date: Wed, 15 Sep 2021 14:35:39 +0500 Subject: [PATCH] feat(ios): cancel image load when unmounted (#787) --- ios/FastImage/FFFastImageView.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ios/FastImage/FFFastImageView.m b/ios/FastImage/FFFastImageView.m index c5f79b4..9c0f1d3 100644 --- a/ios/FastImage/FFFastImageView.m +++ b/ios/FastImage/FFFastImageView.m @@ -1,5 +1,6 @@ #import "FFFastImageView.h" #import +#import @interface FFFastImageView() @@ -228,5 +229,8 @@ }]; } -@end +- (void)dealloc { + [self sd_cancelCurrentImageLoad]; +} +@end