Fix memory leak
This commit is contained in:
parent
91457fe739
commit
e0ee60f290
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ const CGFloat kVerticalTitleMargin = 2;
|
||||||
// Apply the higlight color if the image is a template image. When this moves
|
// Apply the higlight color if the image is a template image. When this moves
|
||||||
// to using the new [NSStatusItem button] API, this should work automagically.
|
// to using the new [NSStatusItem button] API, this should work automagically.
|
||||||
if ([image isTemplate] == YES) {
|
if ([image isTemplate] == YES) {
|
||||||
NSImage * imageWithColor = [image copy];
|
NSImage * imageWithColor = [image copy] autorelease];
|
||||||
[imageWithColor lockFocus];
|
[imageWithColor lockFocus];
|
||||||
[[self colorWithHighlight: highlightContent] set];
|
[[self colorWithHighlight: highlightContent] set];
|
||||||
CGRect imageBounds = CGRectMake(0,0, image.size.width, image.size.height);
|
CGRect imageBounds = CGRectMake(0,0, image.size.width, image.size.height);
|
||||||
|
|
Loading…
Reference in a new issue