Skip to content

Commit

Permalink
fix(ios): animated image is not released when the view is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanSheep authored and ozonelmy committed Dec 8, 2022
1 parent ad691e6 commit 6af1958
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/sdk/component/image/HippyImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ - (void)cancelImageLoad {
if (_bridge.imageLoader) {
[_animatedImageOperation cancel];
_animatedImageOperation = nil;
self.animatedImage = nil;
[_bridge.imageLoader cancelImageDownload:self withUrl:source[@"uri"]];
} else {
[_task cancel];
Expand Down

0 comments on commit 6af1958

Please sign in to comment.