diff --git a/modules/gui/macosx/voutgl.m b/modules/gui/macosx/voutgl.m index 0ed822ef00bc9e8b47ad7dfb2dafd33c7273cd27..3179bbfcf394cc664f2d1599be73581e43ff1a18 100644 --- a/modules/gui/macosx/voutgl.m +++ b/modules/gui/macosx/voutgl.m @@ -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];