Skip to content

Commit

Permalink
feat(ios): cancel image load when unmounted (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
numandev1 authored Sep 15, 2021
1 parent 908267f commit f1588be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ios/FastImage/FFFastImageView.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#import "FFFastImageView.h"
#import <SDWebImage/UIImage+MultiFormat.h>
#import <SDWebImage/UIView+WebCache.h>

@interface FFFastImageView()

Expand Down Expand Up @@ -228,5 +229,8 @@ - (void)downloadImage:(FFFastImageSource *) source options:(SDWebImageOptions) o
}];
}

@end
- (void)dealloc {
[self sd_cancelCurrentImageLoad];
}

@end

0 comments on commit f1588be

Please sign in to comment.