From f39476b234960cd0fb794a43a3eece440367cba2 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 29 Jun 2011 11:45:04 -0700 Subject: [PATCH] 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 file changed, 2 insertions(+) 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; } -- 2.30.2