From 3006ff299e32f73193f5c79c9c5c9008a839e4ee Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Mon, 30 Dec 2019 22:41:00 +0800 Subject: [PATCH] Fix the leak of CGImageRef from UIImage (getter only) --- SDWebImage/Core/UIImage+Transform.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/SDWebImage/Core/UIImage+Transform.m b/SDWebImage/Core/UIImage+Transform.m index 7ff7e98a..125d886e 100644 --- a/SDWebImage/Core/UIImage+Transform.m +++ b/SDWebImage/Core/UIImage+Transform.m @@ -605,8 +605,6 @@ static inline CGImageRef _Nullable SDCGImageFromCIImage(CIImage * _Nonnull ciIma [self drawInRect:CGRectMake(0, 0, self.size.width, self.size.height)]; imageRef = SDGraphicsGetImageFromCurrentImageContext().CGImage; SDGraphicsEndImageContext(); - } else { - CGImageRetain(imageRef); } vImage_Buffer effect = {}, scratch = {};