summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreferencesController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2008-07-16 09:36:29 +0000
committerritsuka <[email protected]>2008-07-16 09:36:29 +0000
commita90edee5a1097a797da9c226064d00c3d15fd2c0 (patch)
tree0b7ea69655ffd567fdd8fa6ad6a00590b9096b81 /macosx/HBPreferencesController.m
parentb0f073282438ec2e89ec99b62a1fee8e849109f2 (diff)
MacGui: FIx a memory leak.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1571 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreferencesController.m')
-rw-r--r--macosx/HBPreferencesController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m
index 70b3ac4c0..47ddf1e45 100644
--- a/macosx/HBPreferencesController.m
+++ b/macosx/HBPreferencesController.m
@@ -69,7 +69,7 @@
- (void) awakeFromNib
{
- NSToolbar * toolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"];
+ NSToolbar * toolbar = [[[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"] autorelease];
[toolbar setDelegate: self];
[toolbar setAllowsUserCustomization: NO];
[toolbar setDisplayMode: NSToolbarDisplayModeIconAndLabel];