]> git.sesse.net Git - vlc/commitdiff
modules/gui/beos/Interface.cpp : fixed a possible crash
authorEric Petit <titer@videolan.org>
Fri, 13 Jun 2003 00:15:40 +0000 (00:15 +0000)
committerEric Petit <titer@videolan.org>
Fri, 13 Jun 2003 00:15:40 +0000 (00:15 +0000)
modules/gui/beos/Interface.cpp

index b266fd834eddd1281834f189fd2d7ef7246c8a81..c6a36263831b24618f59a365b98f48f9faa661c2 100644 (file)
@@ -2,7 +2,7 @@
  * intf_beos.cpp: beos interface
  *****************************************************************************
  * Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: Interface.cpp,v 1.13 2003/05/30 17:30:54 titer Exp $
+ * $Id: Interface.cpp,v 1.14 2003/06/13 00:15:40 titer Exp $
  *
  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -110,8 +110,8 @@ void E_(CloseIntf) ( vlc_object_t *p_this )
     msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub );
 
     /* Destroy the interface window */
-    p_intf->p_sys->p_window->Lock();
-    p_intf->p_sys->p_window->Quit();
+    if( p_intf->p_sys->p_window->Lock() )
+        p_intf->p_sys->p_window->Quit();
 
     /* Destroy structure */
     delete p_intf->p_sys->p_wrapper;