summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@freedesktop.org>2006-07-12 17:06:49 +0000
committerTilman Sauerbeck <tilman@freedesktop.org>2006-07-12 17:06:49 +0000
commite5c28321b2047418ba960c5f9c3aa86cf2514bbb (patch)
tree58cdfaff55573b92daadd37078771f9546523f56
parente77875dcbe3243224f24c2b06c7722fa312445fe (diff)
fix another memleak
-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 d68837b545..b5c20a066a 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);
}
}