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 0402d83e9e3cd5b13f2320ba486e064583ce50f0..292b7b034ee56bdeb55bc0415de955e1e42faf30 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;
    }