]> git.sesse.net Git - vlc/commitdiff
* Fix crash on Quit issue in Mac OS X
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 16 Oct 2005 23:21:25 +0000 (23:21 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 16 Oct 2005 23:21:25 +0000 (23:21 +0000)
  This is really dirty btw. the OS X GUI module has some serious memory management issues.

modules/gui/macosx/intf.m

index 6202bdb61d86aa774a6770a032ed03564b257015..1f93e122bcca6f0dcd649fa999778db0618fd6d9 100644 (file)
@@ -1373,25 +1373,22 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     /* release some other objects here, because it isn't sure whether dealloc
      * will be called later on -- FK (10/6/05) */
-    if ( o_about )
+    if( nib_about_loaded && o_about )
         [o_about release];
     
-    if ( o_prefs )
-        [o_prefs release];
-    
-    if ( o_open )
+    if( nib_open_loaded && o_open )
         [o_open release];
     
-    if ( o_extended )
+    if( nib_extended_loaded && o_extended )
     {
         [o_extended collapsAll];
         [o_extended release];
     }
     
-    if ( o_bookmarks )
+    if( nib_bookmarks_loaded && o_bookmarks )
         [o_bookmarks release];
 
-    if ( o_wizard )
+    if( nib_wizard_loaded && o_wizard )
         [o_wizard release];
 
     if( o_img_pause_pressed != nil )