projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1e1267
)
Add another missing check for uninitialized DRI.
author
Kristian Høgsberg
<krh@redhat.com>
Wed, 12 Mar 2008 06:01:40 +0000
(
02:01
-0400)
committer
Kristian Høgsberg
<krh@redhat.com>
Wed, 12 Mar 2008 06:04:16 +0000
(
02:04
-0400)
Spotted by Chris Taylor.
src/glx/x11/glxext.c
patch
|
blob
|
history
diff --git
a/src/glx/x11/glxext.c
b/src/glx/x11/glxext.c
index bb3fc8940336a5c377e8939bdc9b163f111d684e..077398fe33f55a5d19181cde8a1e70814c393c1e 100644
(file)
--- 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);