summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-08-23 07:51:31 +0000
committerritsuka <[email protected]>2014-08-23 07:51:31 +0000
commitb7b954e87586ccc764d23237d8fdbe6e07458da4 (patch)
tree62bc55e0e9c51f55a871cfc5a42f2f331e3b50dc /macosx
parentdd919adcadb2242eca8bca621dc50541f9a85d6f (diff)
MacGui: fixed two small leaks.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6351 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBHUDView.m1
-rw-r--r--macosx/HBVideoController.m1
2 files changed, 2 insertions, 0 deletions
diff --git a/macosx/HBHUDView.m b/macosx/HBHUDView.m
index 769c5ba99..e7414ae57 100644
--- a/macosx/HBHUDView.m
+++ b/macosx/HBHUDView.m
@@ -64,6 +64,7 @@
if (NSClassFromString(@"NSVisualEffectView"))
{
// Return a NSVisualEffectView instance
+ [self release];
self = [[NSClassFromString(@"NSVisualEffectView") alloc] initWithFrame:frame];
if (self)
{
diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m
index 57720172f..5f73b566a 100644
--- a/macosx/HBVideoController.m
+++ b/macosx/HBVideoController.m
@@ -1038,6 +1038,7 @@ NSString *HBVideoEncoderChangedNotification = @"HBVideoEncoderChangedNotificatio
fMediumPresetIndex = i;
}
}
+ [fPresetNames autorelease];
fPresetNames = [[NSArray alloc] initWithArray:tmp_array];
[tmp_array release];
// setup the preset slider