From: Brian Paul Date: Mon, 27 Jul 2009 21:32:50 +0000 (-0600) Subject: intel: Fix leak of DRI option info due to using the wrong free routine. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dbaf68bdc1f7427a60bdcc8da635ae7a27aa3cd;p=mesa.git intel: Fix leak of DRI option info due to using the wrong free routine. (cherry picked from commit 6d66f23c50ebe8f973757b6fd1b81c9b7920c447) --- diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 2c6e2640b08..f810850ef5b 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -305,7 +305,7 @@ intelDestroyScreen(__DRIscreenPrivate * sPriv) dri_bufmgr_destroy(intelScreen->bufmgr); intelUnmapScreenRegions(intelScreen); - driDestroyOptionCache(&intelScreen->optionCache); + driDestroyOptionInfo(&intelScreen->optionCache); FREE(intelScreen); sPriv->private = NULL;