glx: Destroy dri2Hash on DRI2 display destruction.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
(cherry picked from commit a75de67c51)
This commit is contained in:
Henri Verbeet 2011-04-07 23:48:28 +02:00 committed by Ian Romanick
parent 9e5da5894d
commit 43ad25baa7

View file

@ -911,6 +911,9 @@ handle_error:
static void
dri2DestroyDisplay(__GLXDRIdisplay * dpy)
{
struct dri2_display *pdp = (struct dri2_display *) dpy;
__glxHashDestroy(pdp->dri2Hash);
Xfree(dpy);
}