From 6af195837dc1180b3d09f2ccf8e57af3defded3a Mon Sep 17 00:00:00 2001 From: xpyue Date: Thu, 8 Dec 2022 13:24:19 +0800 Subject: [PATCH] fix(ios): animated image is not released when the view is removed --- ios/sdk/component/image/HippyImageView.m | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/sdk/component/image/HippyImageView.m b/ios/sdk/component/image/HippyImageView.m index 66ff4e57e67..7877e5f75f1 100644 --- a/ios/sdk/component/image/HippyImageView.m +++ b/ios/sdk/component/image/HippyImageView.m @@ -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];