summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreferencesController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2008-05-07 11:21:35 +0000
committerritsuka <[email protected]>2008-05-07 11:21:35 +0000
commit707962e0c733ca594a790ec5213eb85455b7dd64 (patch)
treec24549ba5c3467f4c77fa50c5d62eb6ee50d2be7 /macosx/HBPreferencesController.m
parent79e0d5ba8237924372c5ef71c588b0f00245fb92 (diff)
MacGUI: Fix toolbar item leaks for main and preferences windows. Patch by blindjimmy.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1453 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreferencesController.m')
-rw-r--r--macosx/HBPreferencesController.m3
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;
}