Commit e8b8012d 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
(cherry picked from commit 2ad2a0bd)
parent 2baabf9d
......@@ -772,8 +772,6 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_embedded_list release];
[o_coredialogs release];
[o_eyetv release];
[o_mainwindow release];
o_mainwindow = NULL;
/* unsubscribe from libvlc's debug messages */
vlc_Unsubscribe( p_intf->p_sys->p_sub );
......@@ -793,6 +791,9 @@ static VLCMain *_o_sharedMainInstance = nil;
libvlc_Quit( p_intf->p_libvlc );
[o_mainwindow release];
o_mainwindow = NULL;
[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