macosx: fixes a memory leak.
authorSebastien Zwickert <dilaroga@free.fr>
Sun, 30 Oct 2011 00:10:46 +0000 (02:10 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 31 Oct 2011 00:35:07 +0000 (01:35 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/macosx/MainWindow.m

index c78e19e..72dfc67 100644 (file)
@@ -1397,12 +1397,13 @@ static VLCMainWindow *_o_sharedInstance = nil;
                                [NSValue valueWithRect:args->frame], NSViewAnimationEndFrameKey, nil];
 
         NSViewAnimation * anim = [[NSViewAnimation alloc] initWithViewAnimations:[NSArray arrayWithObject:dict]];
-        [dict release];
 
         [anim setAnimationBlockingMode: NSAnimationNonblocking];
         [anim setDuration: 0.4];
         [anim setFrameRate: 30];
         [anim startAnimation];
+
+        [anim release];
     }
     else {
         [super setFrame:args->frame display:args->display animate:args->animate];