From: Tilman Sauerbeck Date: Wed, 12 Jul 2006 17:06:49 +0000 (+0000) Subject: fix another memleak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5c28321b2047418ba960c5f9c3aa86cf2514bbb;p=mesa.git fix another memleak --- 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); } }