summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorHenri Verbeet <hverbeet@gmail.com>2011-04-07 23:48:28 +0200
committerHenri Verbeet <hverbeet@gmail.com>2011-04-10 18:53:33 +0200
commita75de67c51e9124a7c3846b4110552ea28c60349 (patch)
treeb2fb094ee33966694440722b8575b71272d1481a /src/glx
parent158d42c8b08411d761fa40299f3f29027ad3905f (diff)
glx: Destroy dri2Hash on DRI2 display destruction.
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/dri2_glx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 2c28bc2715..fc0237a4f6 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);
}