summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuNian <nian.wu@intel.com>2007-11-27 18:22:42 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-27 18:22:42 -0700
commit16099c15f5495f22252c6bed655f7f598ebf8001 (patch)
tree73310e2f2d3e301bef396335a623dfb59d3add5f
parent5c64e6885dd3810a8ac5a49a55f807c5994c30fb (diff)
remove drawable from hash table when window is deleted (see bug 13091)
-rw-r--r--src/glx/x11/glxcmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c
index 2d217517af..7ff2bf700c 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);