Commit 2ad2a0bd authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: prevent intermittent crashes on quit by releasing the main window...

macosx: prevent intermittent crashes on quit by releasing the main window later, since libvlc can try to access it as long as it is alive
parent 61d38c8e
...@@ -773,8 +773,6 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -773,8 +773,6 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_embedded_list release]; [o_embedded_list release];
[o_coredialogs release]; [o_coredialogs release];
[o_eyetv release]; [o_eyetv release];
[o_mainwindow release];
o_mainwindow = NULL;
/* unsubscribe from libvlc's debug messages */ /* unsubscribe from libvlc's debug messages */
vlc_Unsubscribe( p_intf->p_sys->p_sub ); vlc_Unsubscribe( p_intf->p_sys->p_sub );
...@@ -794,6 +792,9 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -794,6 +792,9 @@ static VLCMain *_o_sharedMainInstance = nil;
libvlc_Quit( p_intf->p_libvlc ); libvlc_Quit( p_intf->p_libvlc );
[o_mainwindow release];
o_mainwindow = NULL;
[self setIntf:nil]; [self setIntf:nil];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment