intel: Fix leak of DRI option info due to using the wrong free routine.
authorBrian Paul <brianp@vmware.com>
Mon, 27 Jul 2009 21:32:50 +0000 (15:32 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 27 Jul 2009 21:33:07 +0000 (15:33 -0600)
(cherry picked from commit 6d66f23c50ebe8f973757b6fd1b81c9b7920c447)

src/mesa/drivers/dri/intel/intel_screen.c

index 2c6e264..f810850 100644 (file)
@@ -305,7 +305,7 @@ intelDestroyScreen(__DRIscreenPrivate * sPriv)
 
    dri_bufmgr_destroy(intelScreen->bufmgr);
    intelUnmapScreenRegions(intelScreen);
-   driDestroyOptionCache(&intelScreen->optionCache);
+   driDestroyOptionInfo(&intelScreen->optionCache);
 
    FREE(intelScreen);
    sPriv->private = NULL;