Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b5329e

Browse files
dmcdougallmdboom
authored andcommitted
Fix memory leak
1 parent 9ffe6ca commit 6b5329e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/_macosx.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3549,6 +3549,8 @@ static void _data_provider_release(void* info, const void* data, size_t size)
35493549
[image drawInRect:NSMakeRect(0, 0, width, height) fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
35503550
[resizedImage unlockFocus];
35513551
data = [resizedImage TIFFRepresentation];
3552+
[image release];
3553+
[resizedImage release];
35523554

35533555
NSBitmapImageRep* rep = [NSBitmapImageRep imageRepWithData:data];
35543556

0 commit comments

Comments
 (0)