From dfd11aa01c2582855d04fb81b48ae765bcff722d Mon Sep 17 00:00:00 2001 From: Sebastien Zwickert Date: Sun, 30 Oct 2011 02:10:46 +0200 Subject: [PATCH] macosx: fixes a memory leak. Signed-off-by: Jean-Baptiste Kempf --- modules/gui/macosx/MainWindow.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m index c78e19ea44..72dfc67840 100644 --- a/modules/gui/macosx/MainWindow.m +++ b/modules/gui/macosx/MainWindow.m @@ -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]; -- 2.39.2