Fix a leak of the screen's option cache on cleanup (copied from radeon).

This commit is contained in:
Eric Anholt 2006-09-07 06:02:00 +00:00
parent 14ec34d647
commit d016d4e70f

View 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;
}