From 8434c65bb9f52a33ba8945bca9a0c62f7d30ed3a Mon Sep 17 00:00:00 2001 From: Kristof Ralovich Date: Wed, 20 Aug 2008 15:30:12 -0600 Subject: glx: free driScreen in FreeScreenConfigs() --- src/glx/x11/glxext.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 5844c3f656..0d6d25ef3e 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; } /* -- cgit v1.2.3