Mesa (master): glx: Destroy dri2Hash on DRI2 display destruction.

Henri Verbeet hverbeet at kemper.freedesktop.org
Sun Apr 10 09:55:12 PDT 2011


Module: Mesa
Branch: master
Commit: a75de67c51e9124a7c3846b4110552ea28c60349
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a75de67c51e9124a7c3846b4110552ea28c60349

Author: Henri Verbeet <hverbeet at gmail.com>
Date:   Thu Apr  7 23:48:28 2011 +0200

glx: Destroy dri2Hash on DRI2 display destruction.

Signed-off-by: Henri Verbeet <hverbeet at gmail.com>

---

 src/glx/dri2_glx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 2c28bc2..fc0237a 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);
 }
 



More information about the mesa-commit mailing list