From 94f39f2e7cc7f8ef6915a40d14965e5b193d9952 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 12 Mar 2008 02:01:40 -0400 Subject: [PATCH] Add another missing check for uninitialized DRI. Spotted by Chris Taylor. --- src/glx/x11/glxext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2