summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-09-07 06:02:00 +0000
committerEric Anholt <anholt@FreeBSD.org>2006-09-07 06:02:00 +0000
commitd016d4e70f518a0221d63eddca482d56398ffe35 (patch)
treefa6c27d814888d2a76a7a35a0ad9025fe707e487 /src/mesa/drivers
parent14ec34d64733478b773190cb62be37b7b2871a7f (diff)
Fix a leak of the screen's option cache on cleanup (copied from radeon).
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i915/intel_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c
index a87de17304..107cf137ff 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;
}