diff options
author | Younes Manton <[email protected]> | 2009-12-06 16:44:11 -0500 |
---|---|---|
committer | Younes Manton <[email protected]> | 2009-12-06 16:44:11 -0500 |
commit | 447dddb93d8dc2551ef7a9c43004237c7a8dd2dd (patch) | |
tree | de18c6e4c2b071923345bcc1fa876459c4148a70 /src/mesa/shader/arbprogparse.c | |
parent | 9e8ab2e7c1b8ff5279d4247b8690c9bfc57f7e02 (diff) | |
parent | c574f515f0aa20ccc3841cf61a6124bc5996e7b2 (diff) |
Merge branch 'master' into pipe-video
Conflicts:
src/gallium/auxiliary/vl/vl_compositor.c
src/gallium/auxiliary/vl/vl_compositor.h
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
src/gallium/auxiliary/vl/vl_shader_build.c
Diffstat (limited to 'src/mesa/shader/arbprogparse.c')
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 05ee4f563eb..dd732b6666b 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -87,6 +87,9 @@ _mesa_parse_arb_fragment_program(GLcontext* ctx, GLenum target, return; } + if (program->Base.String != NULL) + _mesa_free(program->Base.String); + /* Copy the relevant contents of the arb_program struct into the * fragment_program struct. */ @@ -178,6 +181,9 @@ _mesa_parse_arb_vertex_program(GLcontext *ctx, GLenum target, return; } + if (program->Base.String != NULL) + _mesa_free(program->Base.String); + /* Copy the relevant contents of the arb_program struct into the * vertex_program struct. */ |