Fix the leak of CGImageRef from UIImage (getter only)
This commit is contained in:
parent
2163691d11
commit
3006ff299e
|
@ -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 = {};
|
||||
|
|
Loading…
Reference in New Issue