diff options
author | Kristian Høgsberg <[email protected]> | 2008-03-12 02:01:40 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2008-03-12 02:04:16 -0400 |
commit | 94f39f2e7cc7f8ef6915a40d14965e5b193d9952 (patch) | |
tree | f63dbfcc2da71914341f56aa4c815c3608b87fb2 /src/glx/x11 | |
parent | f1e12673728e01d7a9b2c99cc0b4cc219ac4c280 (diff) |
Add another missing check for uninitialized DRI.
Spotted by Chris Taylor.
Diffstat (limited to 'src/glx/x11')
-rw-r--r-- | src/glx/x11/glxext.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |