summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKristof Ralovich <[email protected]>2008-08-20 15:30:12 -0600
committerBrian Paul <[email protected]>2008-08-20 15:33:03 -0600
commit8434c65bb9f52a33ba8945bca9a0c62f7d30ed3a (patch)
treee4c66d857c70f779405e0bdecf6aa5bc6e171707 /src
parent8b512781345090a18403c43c908fa84c45b8016c (diff)
glx: free driScreen in FreeScreenConfigs()
Diffstat (limited to 'src')
-rw-r--r--src/glx/x11/glxext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 5844c3f656e..0d6d25ef3e4 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -170,10 +170,13 @@ static void FreeScreenConfigs(__GLXdisplayPrivate *priv)
if (psc->driScreen) {
psc->driScreen->destroyScreen(psc);
__glxHashDestroy(psc->drawHash);
+ XFree(psc->driScreen);
+ psc->driScreen = NULL;
}
#endif
}
XFree((char*) priv->screenConfigs);
+ priv->screenConfigs = NULL;
}
/*