summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBartosz Tomczyk <[email protected]>2017-04-09 18:37:13 +0200
committerTimothy Arceri <[email protected]>2017-04-12 17:50:36 +1000
commitbb847e78cfbf14ce7a8f7022ce3033931291e075 (patch)
tree1644cf8bdb2424dd15ea9ec086df2d372eaf39ce /src/mesa
parentc4d43388c0f7d3f8e15d79a1cdc8227add18faf9 (diff)
mesa: fix memory leak in arb_fragment_program
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/program/arbprogparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/program/arbprogparse.c b/src/mesa/program/arbprogparse.c
index 07bdf1603ef..83a501eea69 100644
--- a/src/mesa/program/arbprogparse.c
+++ b/src/mesa/program/arbprogparse.c
@@ -78,6 +78,7 @@ _mesa_parse_arb_fragment_program(struct gl_context* ctx, GLenum target,
memset(&prog, 0, sizeof(prog));
memset(&state, 0, sizeof(state));
state.prog = &prog;
+ state.mem_ctx = program;
if (!_mesa_parse_arb_program(ctx, target, (const GLubyte*) str, len,
&state)) {