summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTilman Sauerbeck <[email protected]>2006-07-12 17:06:49 +0000
committerTilman Sauerbeck <[email protected]>2006-07-12 17:06:49 +0000
commite5c28321b2047418ba960c5f9c3aa86cf2514bbb (patch)
tree58cdfaff55573b92daadd37078771f9546523f56 /src
parente77875dcbe3243224f24c2b06c7722fa312445fe (diff)
fix another memleak
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c4
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);
}
}