macosx: Fix a race condition that causes a crash at exit because VLCIntf holds a...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 26 Mar 2008 00:25:28 +0000 (01:25 +0100)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 26 Mar 2008 16:36:05 +0000 (17:36 +0100)
modules/gui/macosx/intf.m

index 7a98a5c..c650013 100644 (file)
@@ -121,6 +121,8 @@ void E_(CloseIntf) ( vlc_object_t *p_this )
 {
     intf_thread_t *p_intf = (intf_thread_t*) p_this;
 
 {
     intf_thread_t *p_intf = (intf_thread_t*) p_this;
 
+    [[VLCMain sharedInstance] setIntf: nil];
+    
     msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub );
 
     [p_intf->p_sys->o_sendport release];
     msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub );
 
     [p_intf->p_sys->o_sendport release];