[Mesa-dev] [PATCH 2/3] glx: Destroy dri2Hash on DRI2 display destruction.

Henri Verbeet hverbeet at gmail.com
Thu Apr 7 14:50:15 PDT 2011


---
 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);
 }
 
-- 
1.7.2.5



More information about the mesa-dev mailing list