]> git.sesse.net Git - vlc/commitdiff
Remove observer from the notification center in the dealloc method to prevent a crash...
authorSebastien Zwickert <dilaroga@free.fr>
Mon, 7 Jun 2010 20:34:31 +0000 (22:34 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 16 Jun 2010 16:29:54 +0000 (18:29 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/macosx/about.m

index 03bbc0466ca095a98c699317c417ca22737877bd..d56ed7f59ed5596f9c8194b6e5e57c188e56100b 100644 (file)
@@ -61,6 +61,12 @@ static VLAboutBox *_o_sharedInstance = nil;
     return _o_sharedInstance;
 }
 
+- (void) dealloc
+{
+    [[NSNotificationCenter defaultCenter] removeObserver: self];
+    [super dealloc];
+}
+
 /*****************************************************************************
 * VLC About Window
 *****************************************************************************/