macosx: Attempt to avoid a crash. Note that this can't be working properly and could...
[vlc.git] / modules / gui / macosx / intf.m
index c650013..00d3cdc 100644 (file)
@@ -1238,7 +1238,7 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     vlc_object_release( p_playlist );
 
-    while( !intf_ShouldDie( p_intf ) )
+    while( (p_intf = VLCIntf) && !intf_ShouldDie( p_intf ) )
     {
         vlc_mutex_lock( &p_intf->change_lock );