summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2013-04-10 07:50:49 -0700
committerIan Romanick <ian.d.romanick@intel.com>2013-05-10 16:41:30 -0700
commita61650ab8317487f20b7460b2368899c2f51edb9 (patch)
treea3e0879cf1c69d7ec8abb11bbdbfb59477575291
parent13f7cd25f34bb6a5950101bb2ca774c037e9a676 (diff)
mesa: Don't leak gl_context::BeginEnd at context destruction
The other dispatch tables (Exec and Save) are freed, but BeginEnd is never freed. This was found by inspection why investigating the leak of shared state in _mesa_initialize_context. NOTE: This is a candidate for stable branches Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 1faaa411c7039b8b6e2118d8621ca940c674c2d4)
-rw-r--r--src/mesa/main/context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index eb0f422ee31..2d4ee60d8fc 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1181,6 +1181,7 @@ _mesa_free_context_data( struct gl_context *ctx )
_mesa_reference_buffer_object(ctx, &ctx->Array.ArrayBufferObj, NULL);
/* free dispatch tables */
+ free(ctx->BeginEnd);
free(ctx->Exec);
free(ctx->Save);