From a75de67c51e9124a7c3846b4110552ea28c60349 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 7 Apr 2011 23:48:28 +0200 Subject: [PATCH] glx: Destroy dri2Hash on DRI2 display destruction. Signed-off-by: Henri Verbeet --- src/glx/dri2_glx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 2c28bc27150..fc0237a4f6b 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -945,6 +945,9 @@ handle_error: static void dri2DestroyDisplay(__GLXDRIdisplay * dpy) { + struct dri2_display *pdp = (struct dri2_display *) dpy; + + __glxHashDestroy(pdp->dri2Hash); Xfree(dpy); } -- 2.30.2