diff options
Diffstat (limited to 'macosx/HBPreferencesController.m')
-rw-r--r-- | macosx/HBPreferencesController.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m index 6aa4b16ce..c2ad0c3d4 100644 --- a/macosx/HBPreferencesController.m +++ b/macosx/HBPreferencesController.m @@ -83,7 +83,7 @@ willBeInsertedIntoToolbar: (BOOL) flag { NSToolbarItem * item; - item = [[NSToolbarItem alloc] initWithItemIdentifier: ident]; + item = [[[NSToolbarItem alloc] initWithItemIdentifier: ident] autorelease]; if ([ident isEqualToString: TOOLBAR_GENERAL]) { @@ -119,7 +119,6 @@ } else { - [item release]; return nil; } |