Skip to content

Commit

Permalink
Fix potential memory leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredsinclair committed Sep 14, 2015
1 parent 85de5b6 commit 717b253
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/JTSAnimatedGIFUtility.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ static void releaseImages(size_t const count, CGImageRef const images[count]) {
CGImageRef imageRef = CGImageSourceCreateImageAtIndex(source, 0, NULL);
if (imageRef) {
image = [UIImage imageWithCGImage:imageRef];
CGImageRelease(imageRef);
}
} else {
NSArray *const frames = frameArray(count, images, delayCentiseconds, totalDurationCentiseconds);
Expand Down

0 comments on commit 717b253

Please sign in to comment.