From: Eric Anholt Date: Thu, 2 Jul 2009 20:19:11 +0000 (-0700) Subject: intel: Clean up leak of driver context structure on context destroy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddef7dc87b2001fbe117ee5f24a0c645ee95a03c;p=mesa.git intel: Clean up leak of driver context structure on context destroy. --- 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; } }