[vlc-commits] 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
Felix Paul Kühne
git at videolan.org
Wed Apr 11 22:42:11 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Apr 11 22:41:58 2012 +0200| [2ad2a0bd8d9caee51a66e8b0fcd4669f942cbfa0] | committer: Felix Paul Kühne
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
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ad2a0bd8d9caee51a66e8b0fcd4669f942cbfa0
---
modules/gui/macosx/intf.m | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 3d8547d..d8a78b5 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -773,8 +773,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 );
@@ -794,6 +792,9 @@ static VLCMain *_o_sharedMainInstance = nil;
libvlc_Quit( p_intf->p_libvlc );
+ [o_mainwindow release];
+ o_mainwindow = NULL;
+
[self setIntf:nil];
}
More information about the vlc-commits
mailing list