]> git.sesse.net Git - vlc/commitdiff
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 c78e19ea445aaa3153dcd12cf3a0d57ef22ea929..72dfc678404cc9e021c69f2fc5e0e6e2e7064b1a 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];