Commit d4d9a565 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Don't forget to unregister callbacks.

parent a8fe5f4a
......@@ -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" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment