Skip to content

Commit f9909c4

Browse files
committed
fixed avifDecoder memory leak
1 parent e321468 commit f9909c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SDWebImageAVIFCoder/Classes/SDImageAVIFCoder.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ - (UIImage *)decodedImageWithData:(NSData *)data options:(SDImageCoderOptions *)
131131
UIImage *image = [[UIImage alloc] initWithCGImage:imageRef scale:scale orientation:UIImageOrientationUp];
132132
#endif
133133
CGImageRelease(imageRef);
134+
avifDecoderDestroy(decoder);
134135
return image;
135136
}
136137

0 commit comments

Comments
 (0)