glx: free driScreen in FreeScreenConfigs()
authorKristof Ralovich <kristof.ralovich@gmail.com>
Wed, 20 Aug 2008 21:30:12 +0000 (15:30 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 20 Aug 2008 21:33:03 +0000 (15:33 -0600)
src/glx/x11/glxext.c

index 5844c3f656e5e8b5b231e86b2d8a072a47953367..0d6d25ef3e49aaa75b2bfe5663b171ede34b186d 100644 (file)
@@ -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;
 }
 
 /*