mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 08:00:12 +01:00
mesa: fix memory leak in arb_fragment_program
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
c4d43388c0
commit
bb847e78cf
1 changed files with 1 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue