From: John Date: Wed, 29 Jun 2011 18:45:04 +0000 (-0700) Subject: i915: Fix leak of ViewportMatrix data on context destroy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f39476b234960cd0fb794a43a3eece440367cba2;p=mesa.git i915: Fix leak of ViewportMatrix data on context destroy. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30217 --- diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 0402d83e9e3..292b7b034ee 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; }