Re: [Mesa-dev] [PATCH] Release gl_debug_state when destroying context.

2014-03-12 Thread Mike Stroyan
Brian, Please push that. I haven't gotten commit access for myself yet. On Tue, Mar 11, 2014 at 5:42 PM, Brian Paul wrote: > On 03/11/2014 05:07 PM, Mike Stroyan wrote: > >> Commit 6e8d04a caused a leak by allocating ctx->Debug but never freeing >> it. >> Release the memory in _mesa_free_er

Re: [Mesa-dev] [PATCH] Release gl_debug_state when destroying context.

2014-03-11 Thread Brian Paul
On 03/11/2014 05:07 PM, Mike Stroyan wrote: Commit 6e8d04a caused a leak by allocating ctx->Debug but never freeing it. Release the memory in _mesa_free_errors_data when destroying a context. Use FREE to match CALLOC_STRUCT from _mesa_get_debug_state. --- src/mesa/main/errors.c | 5 - 1 fi

[Mesa-dev] [PATCH] Release gl_debug_state when destroying context.

2014-03-11 Thread Mike Stroyan
Commit 6e8d04a caused a leak by allocating ctx->Debug but never freeing it. Release the memory in _mesa_free_errors_data when destroying a context. Use FREE to match CALLOC_STRUCT from _mesa_get_debug_state. --- src/mesa/main/errors.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff