From: Brian Paul Date: Mon, 27 Jul 2009 21:28:49 +0000 (-0600) Subject: intel: Clean up leak of driver context structure on context destroy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=722d136f7bd3390c72bca175831647d93393e92d;p=mesa.git intel: Clean up leak of driver context structure on context destroy. (cherry picked from commit ddef7dc87b2001fbe117ee5f24a0c645ee95a03c) --- diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index cfd983d3682..9db5b546433 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -804,6 +804,9 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv) /* free the Mesa context */ _mesa_free_context_data(&intel->ctx); + + FREE(intel); + driContextPriv->driverPrivate = NULL; } }