]> git.sesse.net Git - vlc/commitdiff
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 7a98a5c2399a7349399374f1e0b69a42417e2b95..c650013d17e9c143ae063f18e4d03cdafb2ab761 100644 (file)
@@ -121,6 +121,8 @@ void E_(CloseIntf) ( vlc_object_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];