From: Henri Verbeet Date: Thu, 7 Apr 2011 21:48:28 +0000 (+0200) Subject: glx: Destroy dri2Hash on DRI2 display destruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a75de67c51e9124a7c3846b4110552ea28c60349;p=mesa.git glx: Destroy dri2Hash on DRI2 display destruction. Signed-off-by: Henri Verbeet --- 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); }