summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxext.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-07-30 08:22:57 -0600
committerBrian Paul <[email protected]>2009-07-30 08:22:57 -0600
commite87320b5e033a911d4ced2d516e479cdf1bc9228 (patch)
tree897a5d5adde008de5e67a897c8c94fda5fbedbfd /src/glx/x11/glxext.c
parentaefaeba54a3ad7104a83ffdaf81ad9d654b990ee (diff)
parent684282953937a37541f26c6e51ceec4134c62dfb (diff)
Merge branch 'mesa_7_5_branch'
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r--src/glx/x11/glxext.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index e07ed29790c..c6ab4b5890d 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -149,6 +149,12 @@ FreeScreenConfigs(__GLXdisplayPrivate * priv)
Xfree((char *) psc->serverGLXexts);
#ifdef GLX_DIRECT_RENDERING
+ if (psc->driver_configs) {
+ for(unsigned int i = 0; psc->driver_configs[i]; i++)
+ free((__DRIconfig*)psc->driver_configs[i]);
+ free(psc->driver_configs);
+ psc->driver_configs = NULL;
+ }
if (psc->driScreen) {
psc->driScreen->destroyScreen(psc);
__glxHashDestroy(psc->drawHash);