i915: Fix leak of ViewportMatrix data on context destroy.
authorJohn <jpsinthemix@verizon.net>
Wed, 29 Jun 2011 18:45:04 +0000 (11:45 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 7 Jul 2011 21:43:44 +0000 (14:43 -0700)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30217

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

index 0402d83..292b7b0 100644 (file)
@@ -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;
    }