diff --git a/YYImage/YYImageCoder.m b/YYImage/YYImageCoder.m index 66cf46e..f537e49 100644 --- a/YYImage/YYImageCoder.m +++ b/YYImage/YYImageCoder.m @@ -2561,6 +2561,7 @@ - (NSData *)_encodeAPNG { CFRelease(extendedImage); return nil; } + CFRelease(extendedImage); pngDatas[0] = (__bridge id)(frameData); CFRelease(frameData); }