]> granicus.if.org Git - handbrake/commitdiff
MacGui: fixed two small leaks.
authorritsuka <damiog@gmail.com>
Sat, 23 Aug 2014 07:51:31 +0000 (07:51 +0000)
committerritsuka <damiog@gmail.com>
Sat, 23 Aug 2014 07:51:31 +0000 (07:51 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6351 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBHUDView.m
macosx/HBVideoController.m

index 769c5ba99591259e4e951e3d3ae7a67f66c01013..e7414ae57350ff9282a890e5e1f7e945af74ed1a 100644 (file)
@@ -64,6 +64,7 @@
     if (NSClassFromString(@"NSVisualEffectView"))
     {
         // Return a NSVisualEffectView instance
+        [self release];
         self = [[NSClassFromString(@"NSVisualEffectView") alloc] initWithFrame:frame];
         if (self)
         {
index 57720172f4cdbe6322c43eab123b66eecabc478d..5f73b566a5cdffec2285920a8448d900bd7dfe61 100644 (file)
@@ -1038,6 +1038,7 @@ NSString *HBVideoEncoderChangedNotification = @"HBVideoEncoderChangedNotificatio
             fMediumPresetIndex = i;
         }
     }
+    [fPresetNames autorelease];
     fPresetNames = [[NSArray alloc] initWithArray:tmp_array];
     [tmp_array release];
     // setup the preset slider