]> git.sesse.net Git - vlc/commitdiff
macosx: Don't forget to unregister callbacks.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 5 Jul 2008 00:48:23 +0000 (02:48 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 5 Jul 2008 00:48:23 +0000 (02:48 +0200)
modules/gui/macosx/intf.m

index 6d7d237338475f64ef7b7e3692c49ae0d0bd9312..cac24fa4c8c93e7cef7e8c519c461ab5d73a5c69 100644 (file)
@@ -1256,6 +1256,12 @@ static VLCMain *_o_sharedMainInstance = nil;
     vlc_object_unlock( p_intf );
     [o_pool release];
 
+    var_DelCallback( p_playlist, "playlist-current", PlaylistChanged, self );
+    var_DelCallback( p_playlist, "intf-change", PlaylistChanged, self );
+    var_DelCallback( p_playlist, "item-change", PlaylistChanged, self );
+    var_DelCallback( p_playlist, "item-append", PlaylistChanged, self );
+    var_DelCallback( p_playlist, "item-deleted", PlaylistChanged, self );
+
     pthread_testcancel(); /* If we were cancelled stop here */
 
     msg_Info( p_intf, "Killing the Mac OS X module" );