From: WuNian Date: Wed, 28 Nov 2007 01:22:42 +0000 (-0700) Subject: remove drawable from hash table when window is deleted (see bug 13091) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16099c15f5495f22252c6bed655f7f598ebf8001;p=mesa.git remove drawable from hash table when window is deleted (see bug 13091) --- diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c index 2d217517af6..7ff2bf700c9 100644 --- a/src/glx/x11/glxcmds.c +++ b/src/glx/x11/glxcmds.c @@ -101,6 +101,7 @@ static void GarbageCollectDRIDrawables(Display *dpy, __GLXscreenConfigs *sc) longer exists in the Xserver */ (*pdraw->driDrawable.destroyDrawable)(&pdraw->driDrawable); XF86DRIDestroyDrawable(dpy, sc->scr, draw); + __glxHashDelete(sc->drawHash, draw); Xfree(pdraw); } } while (__glxHashNext(sc->drawHash, &draw, (void *)&pdraw) == 1);