[vlc-devel] commit: macosx: Don't forget to unregister callbacks. (Pierre d'Herbemont )

git version control git at videolan.org
Sat Jul 5 02:46:14 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Jul  5 02:48:23 2008 +0200| [d4d9a5656601fdb1cc62d5c595dd75bf1a11a529]

macosx: Don't forget to unregister callbacks.

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

 modules/gui/macosx/intf.m |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 6d7d237..cac24fa 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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" );




More information about the vlc-devel mailing list