]> git.sesse.net Git - vlc/commitdiff
macosx: avoid a crash if VLCIntf is NULL.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 26 Mar 2008 16:25:17 +0000 (17:25 +0100)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 26 Mar 2008 16:36:07 +0000 (17:36 +0100)
Note: This is completly crippled and can easily lead to some race condition. We need to re-think the whole modules to avoid those.

modules/gui/macosx/voutgl.m

index 0ed822ef00bc9e8b47ad7dfb2dafd33c7273cd27..3179bbfcf394cc664f2d1599be73581e43ff1a18 100644 (file)
@@ -204,7 +204,7 @@ void E_(CloseVideoGL) ( vlc_object_t * p_this )
     {
         aglDestroyContext(p_vout->p_sys->agl_ctx);
     }
-    else if(!VLCIntf->b_die)
+    else if(VLCIntf && !VLCIntf->b_die)
     {
         NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init];