Mesa (master): i915: Fix leak of ViewportMatrix data on context destroy.

Eric Anholt anholt at kemper.freedesktop.org
Thu Jul 7 21:46:31 UTC 2011


Module: Mesa
Branch: master
Commit: f39476b234960cd0fb794a43a3eece440367cba2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f39476b234960cd0fb794a43a3eece440367cba2

Author: John <jpsinthemix at verizon.net>
Date:   Wed Jun 29 11:45:04 2011 -0700

i915: Fix leak of ViewportMatrix data on context destroy.

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 0402d83..292b7b0 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;
    }




More information about the mesa-commit mailing list