ARB prog parser: Release old program string in _mesa_parse_arb_{fragment,vertex}_program
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 5 Nov 2009 22:17:07 +0000 (14:17 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 6 Nov 2009 18:46:22 +0000 (10:46 -0800)
commitd8e256f9236d3e9dfd433c3a59718f0fdf1ca79a
treee6111bb2a9f1b6498fed1ef7f4f0000752760d45
parent301a9b7e28f7404b8f6d8c34649f0035b49a8249
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.
src/mesa/shader/arbprogparse.c
src/mesa/shader/program_parse.y