From: Eric Anholt Date: Thu, 7 Sep 2006 06:02:00 +0000 (+0000) Subject: Fix a leak of the screen's option cache on cleanup (copied from radeon). X-Git-Tag: 062012170305~20556 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d016d4e70f518a0221d63eddca482d56398ffe35;p=profile%2Fivi%2Fmesa.git Fix a leak of the screen's option cache on cleanup (copied from radeon). --- diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c index a87de17..107cf13 100644 --- a/src/mesa/drivers/dri/i915/intel_screen.c +++ b/src/mesa/drivers/dri/i915/intel_screen.c @@ -357,6 +357,9 @@ static void intelDestroyScreen(__DRIscreenPrivate *sPriv) intelScreenPrivate *intelScreen = (intelScreenPrivate *)sPriv->private; intelUnmapScreenRegions(intelScreen); + + driDestroyOptionInfo (&intelScreen->optionCache); + FREE(intelScreen); sPriv->private = NULL; }