From: Kristian Høgsberg Date: Wed, 12 Mar 2008 06:01:40 +0000 (-0400) Subject: Add another missing check for uninitialized DRI. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94f39f2e7cc7f8ef6915a40d14965e5b193d9952;p=mesa.git Add another missing check for uninitialized DRI. Spotted by Chris Taylor. --- diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index bb3fc894033..077398fe33f 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -348,7 +348,8 @@ static void FreeScreenConfigs(__GLXdisplayPrivate *priv) Xfree((char*) psc->serverGLXexts); #ifdef GLX_DIRECT_RENDERING - psc->driScreen->destroyScreen(psc); + if (psc->driScreen) + psc->driScreen->destroyScreen(psc); #endif } XFree((char*) priv->screenConfigs);