summaryrefslogtreecommitdiffstats
path: root/src/glx/dri2_glx.c
diff options
context:
space:
mode:
authorHenri Verbeet <[email protected]>2011-04-07 23:48:28 +0200
committerHenri Verbeet <[email protected]>2011-04-10 18:53:33 +0200
commita75de67c51e9124a7c3846b4110552ea28c60349 (patch)
treeb2fb094ee33966694440722b8575b71272d1481a /src/glx/dri2_glx.c
parent158d42c8b08411d761fa40299f3f29027ad3905f (diff)
glx: Destroy dri2Hash on DRI2 display destruction.
Signed-off-by: Henri Verbeet <[email protected]>
Diffstat (limited to 'src/glx/dri2_glx.c')
-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 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);
}