OSDN Git Service

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 8b3761c..6bbc995 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;