intel: Fix leak of DRI option info due to using the wrong free routine.
authorEric Anholt <eric@anholt.net>
Thu, 2 Jul 2009 20:30:20 +0000 (13:30 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 2 Jul 2009 21:07:10 +0000 (14:07 -0700)
src/mesa/drivers/dri/intel/intel_screen.c

index 8b3761c6bf294d2ade1eaddb460f5c7a70295e13..6bbc995c1e65427d31e96ca10deefc34627dc79a 100644 (file)
@@ -316,7 +316,7 @@ intelDestroyScreen(__DRIscreenPrivate * sPriv)
 
    dri_bufmgr_destroy(intelScreen->bufmgr);
    intelUnmapScreenRegions(intelScreen);
-   driDestroyOptionCache(&intelScreen->optionCache);
+   driDestroyOptionInfo(&intelScreen->optionCache);
 
    FREE(intelScreen);
    sPriv->private = NULL;