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 a87de17304fe31a89a857df32e042112c39d4d31..107cf137ff672a61b2c7480141b42f74b5e20439 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;
 }