[vlc-commits] macosx: fixes a memory leak.

Sebastien Zwickert git at videolan.org
Mon Oct 31 01:35:35 CET 2011


vlc | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Sun Oct 30 02:10:46 2011 +0200| [dfd11aa01c2582855d04fb81b48ae765bcff722d] | committer: Jean-Baptiste Kempf

macosx: fixes a memory leak.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dfd11aa01c2582855d04fb81b48ae765bcff722d
---

 modules/gui/macosx/MainWindow.m |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index c78e19e..72dfc67 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];



More information about the vlc-commits mailing list