mesa: Release gl_debug_state when destroying context.
authorMike Stroyan <mike@lunarg.com>
Tue, 11 Mar 2014 23:07:00 +0000 (17:07 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 12 Mar 2014 15:43:05 +0000 (09:43 -0600)
commit6e627b49f9c9b62bb116a738305a564d4f28e633
tree9413e3bc38721fe80f61192b6a073588ca06d250
parent2c886eba7820f7e3e965dd16b786b0a412d8ef11
mesa: Release gl_debug_state when destroying context.

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.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/errors.c