adium 4784:0c92a4c051f7: Use a copy of the pane's image so that ...
commits at adium.im
commits at adium.im
Thu Apr 26 15:57:43 UTC 2012
details: http://hg.adium.im/adium/rev/0c92a4c051f7
revision: 4784:0c92a4c051f7
branch: (none)
author: Frank Dowsett <wixardy at adium.im>
date: Thu Apr 26 11:57:19 2012 -0400
Use a copy of the pane's image so that the size isn't set on the original.
diffs (16 lines):
diff -r 24bf857ed22d -r 0c92a4c051f7 Source/AIPreferenceWindowController.m
--- a/Source/AIPreferenceWindowController.m Thu Apr 26 00:12:17 2012 -0400
+++ b/Source/AIPreferenceWindowController.m Thu Apr 26 11:57:19 2012 -0400
@@ -271,10 +271,11 @@
NSMenuItem *paneItem = [[NSMenuItem alloc] initWithTitle:[pane paneName]
action:@selector(displayPaneFromMenu:)
keyEquivalent:@""];
- NSImage *paneImage = [pane paneIcon];
+ NSImage *paneImage = [[pane paneIcon] copy];
[paneImage setSize:NSMakeSize(16, 16)];
[paneItem setImage:paneImage];
[paneMenu addItem:paneItem];
+ [paneImage release];
[paneItem release];
}
More information about the commits
mailing list