Mesa (mesa_7_5_branch): intel: Fix leak of DRI option info due to using the wrong free routine.

Brian Paul brianp at kemper.freedesktop.org
Mon Jul 27 14:33:00 PDT 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 3dbaf68bdc1f7427a60bdcc8da635ae7a27aa3cd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3dbaf68bdc1f7427a60bdcc8da635ae7a27aa3cd

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Jul 27 15:32:50 2009 -0600

intel: Fix leak of DRI option info due to using the wrong free routine.

(cherry picked from commit 6d66f23c50ebe8f973757b6fd1b81c9b7920c447)

---

 src/mesa/drivers/dri/intel/intel_screen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index 2c6e264..f810850 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -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;



More information about the mesa-commit mailing list