[vlc-devel] commit: macosx: Fix a race condition that causes a crash at exit because VLCIntf holds a freed ptr . (Pierre d'Herbemont )

git version control git at videolan.org
Wed Mar 26 17:36:12 CET 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Mar 26 01:25:28 2008 +0100| [7a0f077cd3a4f53b843962b65d6a30ccb4f080e6]

macosx: Fix a race condition that causes a crash at exit because VLCIntf holds a freed ptr.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7a0f077cd3a4f53b843962b65d6a30ccb4f080e6
---

 modules/gui/macosx/intf.m |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 7a98a5c..c650013 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -121,6 +121,8 @@ void E_(CloseIntf) ( vlc_object_t *p_this )
 {
     intf_thread_t *p_intf = (intf_thread_t*) p_this;
 
+    [[VLCMain sharedInstance] setIntf: nil];
+    
     msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub );
 
     [p_intf->p_sys->o_sendport release];




More information about the vlc-devel mailing list