diff options
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } } |