[Mesa-dev] [PATCH 5/5] i915: Fix leak of ViewportMatrix data on context destroy.

Eric Anholt eric at anholt.net
Wed Jun 29 15:26:52 PDT 2011


From: John <jpsinthemix at verizon.net>

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30217
---
 src/mesa/drivers/dri/intel/intel_context.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 91f6c6d..eef2c58 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -922,6 +922,8 @@ intelDestroyContext(__DRIcontext * driContextPriv)
       /* free the Mesa context */
       _mesa_free_context_data(&intel->ctx);
 
+      _math_matrix_dtr(&intel->ViewportMatrix);
+
       FREE(intel);
       driContextPriv->driverPrivate = NULL;
    }
-- 
1.7.5.4



More information about the mesa-dev mailing list