From e5c28321b2047418ba960c5f9c3aa86cf2514bbb Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Wed, 12 Jul 2006 17:06:49 +0000 Subject: [PATCH] fix another memleak --- src/mesa/drivers/dri/common/dri_util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index d68837b545a..b5c20a066a5 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -845,6 +845,10 @@ static void driDestroyScreen(__DRInativeDisplay *dpy, int scrn, void *screenPriv if ( psp->modes != NULL ) { (*dri_interface->destroyContextModes)( psp->modes ); } + + assert(psp->drawHash); + drmHashDestroy(psp->drawHash); + _mesa_free(psp); } } -- 2.30.2