Permalink
Browse files

Don't leak the bitmap image representation used when finalizing text.

  • Loading branch information...
1 parent d04b93e commit 6efcef34524a2fbd694fd4343d53eb7353da7408 @uliwitness committed May 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ULIPaintTextTool.m
View
@@ -101,7 +101,7 @@ -(void) toolFinished
drawPos.y += 0.5;
[textbox lockFocus];
- textImgRep = [[NSBitmapImageRep alloc] initWithFocusedViewRect: [textbox bounds]];
+ textImgRep = [[[NSBitmapImageRep alloc] initWithFocusedViewRect: [textbox bounds]] autorelease];
[textbox unlockFocus];
finalImage = [owner image];

0 comments on commit 6efcef3

Please sign in to comment.