]> git.sesse.net Git - vlc/commitdiff
* don't autorelease the application
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 6 May 2004 19:34:41 +0000 (19:34 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 6 May 2004 19:34:41 +0000 (19:34 +0000)
* make sure the terminate of the super is called

This might fix the CodeTek VirtualDesktop appl. (untested)

modules/gui/macosx/intf.m

index 2078921c08ba0e1fa0eb9c048b51dc1d74484cb1..de01fb4ed7dd252bea8bd824747668c1453990b6 100644 (file)
@@ -59,7 +59,7 @@ int E_(OpenIntf) ( vlc_object_t *p_this )
     memset( p_intf->p_sys, 0, sizeof( *p_intf->p_sys ) );
     
     p_intf->p_sys->o_pool = [[NSAutoreleasePool alloc] init];
-    
+
     /* Put Cocoa into multithread mode as soon as possible.
      * http://developer.apple.com/techpubs/macosx/Cocoa/
      * TasksAndConcepts/ProgrammingTopics/Multithreading/index.html
@@ -71,10 +71,9 @@ int E_(OpenIntf) ( vlc_object_t *p_this )
     p_intf->b_play = VLC_TRUE;
     p_intf->pf_run = Run;
     
-    [[VLCApplication sharedApplication] autorelease];
+    [VLCApplication sharedApplication];
     [NSApp setIntf: p_intf];
 
-
     [NSBundle loadNibNamed: @"MainMenu" owner: NSApp];
 
     return( 0 );
@@ -211,6 +210,7 @@ static void Run( intf_thread_t *p_intf )
 - (void)terminate:(id)sender
 {
     p_intf->p_vlc->b_die = VLC_TRUE;
+    [super terminate:sender];
 }
 
 
@@ -1261,6 +1261,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
         o_msg_lock = nil;
     }
 
+    [NSApp terminate: nil];
     [NSApp stop: nil];
 
     /* write cached user defaults to disk */