summaryrefslogtreecommitdiff
path: root/src/glx/x11/glxext.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-03-12 02:01:40 -0400
committerKristian Høgsberg <krh@redhat.com>2008-03-12 02:04:16 -0400
commit94f39f2e7cc7f8ef6915a40d14965e5b193d9952 (patch)
treef63dbfcc2da71914341f56aa4c815c3608b87fb2 /src/glx/x11/glxext.c
parentf1e12673728e01d7a9b2c99cc0b4cc219ac4c280 (diff)
Add another missing check for uninitialized DRI.
Spotted by Chris Taylor.
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r--src/glx/x11/glxext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index bb3fc89403..077398fe33 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);