Fix a leak of the screen's option cache on cleanup (copied from radeon).
authorEric Anholt <anholt@FreeBSD.org>
Thu, 7 Sep 2006 06:02:00 +0000 (06:02 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Thu, 7 Sep 2006 06:02:00 +0000 (06:02 +0000)
src/mesa/drivers/dri/i915/intel_screen.c

index a87de17..107cf13 100644 (file)
@@ -357,6 +357,9 @@ static void intelDestroyScreen(__DRIscreenPrivate *sPriv)
    intelScreenPrivate *intelScreen = (intelScreenPrivate *)sPriv->private;
 
    intelUnmapScreenRegions(intelScreen);
+
+   driDestroyOptionInfo (&intelScreen->optionCache);
+
    FREE(intelScreen);
    sPriv->private = NULL;
 }