glx: Destroy dri2Hash on DRI2 display destruction.
authorHenri Verbeet <hverbeet@gmail.com>
Thu, 7 Apr 2011 21:48:28 +0000 (23:48 +0200)
committerHenri Verbeet <hverbeet@gmail.com>
Sun, 10 Apr 2011 16:53:33 +0000 (18:53 +0200)
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
src/glx/dri2_glx.c

index 2c28bc271500a47e13a945159b2fca76d16d2f34..fc0237a4f6b122be9be662cd9104a3f6205a3c25 100644 (file)
@@ -945,6 +945,9 @@ handle_error:
 static void
 dri2DestroyDisplay(__GLXDRIdisplay * dpy)
 {
+   struct dri2_display *pdp = (struct dri2_display *) dpy;
+
+   __glxHashDestroy(pdp->dri2Hash);
    Xfree(dpy);
 }