From 0b589369c8f7c5be6d9abc1eae1a2d6808e8b4a7 Mon Sep 17 00:00:00 2001 From: Micha Faw Date: Thu, 8 Jul 2021 18:08:23 -0400 Subject: [PATCH] When passing in nil to clear the animated image, remove anything sitting in super.image --- FLAnimatedImage/FLAnimatedImageView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FLAnimatedImage/FLAnimatedImageView.m b/FLAnimatedImage/FLAnimatedImageView.m index 7a163c7..69f8e81 100755 --- a/FLAnimatedImage/FLAnimatedImageView.m +++ b/FLAnimatedImage/FLAnimatedImageView.m @@ -118,6 +118,8 @@ - (void)setAnimatedImage:(FLAnimatedImage *)animatedImage } else { // Stop animating before the animated image gets cleared out. [self stopAnimating]; + // Clear out the image. + super.image = nil; } _animatedImage = animatedImage;