From 16099c15f5495f22252c6bed655f7f598ebf8001 Mon Sep 17 00:00:00 2001 From: WuNian Date: Tue, 27 Nov 2007 18:22:42 -0700 Subject: [PATCH] remove drawable from hash table when window is deleted (see bug 13091) --- src/glx/x11/glxcmds.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2