From: Eric Anholt Date: Thu, 2 Jul 2009 20:30:20 +0000 (-0700) 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=6d66f23c50ebe8f973757b6fd1b81c9b7920c447;p=mesa.git intel: Fix leak of DRI option info due to using the wrong free routine. --- diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 8b3761c6bf2..6bbc995c1e6 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -316,7 +316,7 @@ intelDestroyScreen(__DRIscreenPrivate * sPriv) dri_bufmgr_destroy(intelScreen->bufmgr); intelUnmapScreenRegions(intelScreen); - driDestroyOptionCache(&intelScreen->optionCache); + driDestroyOptionInfo(&intelScreen->optionCache); FREE(intelScreen); sPriv->private = NULL;