diff options
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r-- | src/glx/x11/glxext.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index e07312214b..61352a6098 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -358,12 +358,7 @@ static void FreeScreenConfigs(__GLXdisplayPrivate *priv) Xfree((char*) psc->serverGLXexts); #ifdef GLX_DIRECT_RENDERING - /* Free the direct rendering per screen data */ - if (psc->driScreen.private) - (*psc->driScreen.destroyScreen)(&psc->driScreen); - psc->driScreen.private = NULL; - if (psc->drawHash) - __glxHashDestroy(psc->drawHash); + driDestroyScreen(psc); #endif } XFree((char*) priv->screenConfigs); @@ -394,10 +389,6 @@ static int __glXFreeDisplayPrivate(XExtData *extension) (*priv->driDisplay.destroyDisplay)(priv->dpy, priv->driDisplay.private); priv->driDisplay.private = NULL; - if (priv->driDisplay.createNewScreen) { - Xfree(priv->driDisplay.createNewScreen); /* free array of ptrs */ - priv->driDisplay.createNewScreen = NULL; - } #endif Xfree((char*) priv); |