From ddef7dc87b2001fbe117ee5f24a0c645ee95a03c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 2 Jul 2009 13:19:11 -0700 Subject: intel: Clean up leak of driver context structure on context destroy. --- src/mesa/drivers/dri/intel/intel_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 33b2d074995..ce9b1181347 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -877,7 +877,8 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv) /* free the Mesa context */ _mesa_free_context_data(&intel->ctx); - + FREE(intel); + driContextPriv->driverPrivate = NULL; } } -- cgit v1.2.3