Fix the leak of CGImageRef from UIImage (getter only)

This commit is contained in:
DreamPiggy 2019-12-30 22:41:00 +08:00
parent 2163691d11
commit 3006ff299e
1 changed files with 0 additions and 2 deletions

View File

@ -605,8 +605,6 @@ static inline CGImageRef _Nullable SDCGImageFromCIImage(CIImage * _Nonnull ciIma
[self drawInRect:CGRectMake(0, 0, self.size.width, self.size.height)]; [self drawInRect:CGRectMake(0, 0, self.size.width, self.size.height)];
imageRef = SDGraphicsGetImageFromCurrentImageContext().CGImage; imageRef = SDGraphicsGetImageFromCurrentImageContext().CGImage;
SDGraphicsEndImageContext(); SDGraphicsEndImageContext();
} else {
CGImageRetain(imageRef);
} }
vImage_Buffer effect = {}, scratch = {}; vImage_Buffer effect = {}, scratch = {};