diff options
-rw-r--r-- | src/glx/x11/glxext.c | 3 |
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; } /* |