From 8434c65bb9f52a33ba8945bca9a0c62f7d30ed3a Mon Sep 17 00:00:00 2001 From: Kristof Ralovich Date: Wed, 20 Aug 2008 15:30:12 -0600 Subject: [PATCH] glx: free driScreen in FreeScreenConfigs() --- src/glx/x11/glxext.c | 3 +++ 1 file changed, 3 insertions(+) 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; } /* -- 2.30.2