diff options
author | Ian Romanick <[email protected]> | 2009-11-05 14:17:07 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2009-11-06 10:46:22 -0800 |
commit | d8e256f9236d3e9dfd433c3a59718f0fdf1ca79a (patch) | |
tree | e6111bb2a9f1b6498fed1ef7f4f0000752760d45 /src/mesa/shader/program_parse.y | |
parent | 301a9b7e28f7404b8f6d8c34649f0035b49a8249 (diff) |
ARB prog parser: Release old program string in _mesa_parse_arb_{fragment,vertex}_program
The program structure passed to _mesa_parse_arb_program is just a
place holder. The stings that actually need to be released are only
known to the functions calling _mesa_parse_arb_program, so they should
be freed there.
Diffstat (limited to 'src/mesa/shader/program_parse.y')
-rw-r--r-- | src/mesa/shader/program_parse.y | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y index b2db2958be8..aad5eeb7da3 100644 --- a/src/mesa/shader/program_parse.y +++ b/src/mesa/shader/program_parse.y @@ -2304,10 +2304,6 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target, const GLubyte *str, _mesa_memcpy (strz, str, len); strz[len] = '\0'; - if (state->prog->String != NULL) { - _mesa_free(state->prog->String); - } - state->prog->String = strz; state->st = _mesa_symbol_table_ctor(); |