From: Kristof Ralovich Date: Wed, 20 Aug 2008 21:30:12 +0000 (-0600) Subject: glx: free driScreen in FreeScreenConfigs() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8434c65bb9f52a33ba8945bca9a0c62f7d30ed3a;p=mesa.git glx: free driScreen in FreeScreenConfigs() --- 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; } /*