diff options
author | Ian Romanick <[email protected]> | 2013-04-10 07:50:49 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-04-12 16:24:48 -0700 |
commit | 1faaa411c7039b8b6e2118d8621ca940c674c2d4 (patch) | |
tree | af69ef558d498fd07ce181e01576d74dc03c62b8 /src/mesa/main | |
parent | 6e06550e4e0682c616fc0228beee419618421f2c (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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 939f896b863..d77740e4fb4 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); |