summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vp_build.c
diff options
context:
space:
mode:
authorShunichi Fuji <palglowr@gmail.com>2008-05-16 10:11:25 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-05-16 15:16:06 -0600
commite291cf6f8d3423c2f1e123ec2a42f0568019da80 (patch)
tree972667afc9b3df68446ad50c8d6e865480a6e527 /src/mesa/tnl/t_vp_build.c
parent8bdf5b6e6465ff734a798efb193ab16cd33df36e (diff)
free(key) in _tnl_UpdateFixedFunctionProgram()
Diffstat (limited to 'src/mesa/tnl/t_vp_build.c')
-rw-r--r--src/mesa/tnl/t_vp_build.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c
index 4a0ce447c6..4432893f17 100644
--- a/src/mesa/tnl/t_vp_build.c
+++ b/src/mesa/tnl/t_vp_build.c
@@ -1575,6 +1575,9 @@ void _tnl_UpdateFixedFunctionProgram( GLcontext *ctx )
} else {
FREE(key);
}
+ else {
+ FREE(key);
+ }
_mesa_reference_vertprog(ctx, &ctx->VertexProgram._TnlProgram, newProg);
_mesa_reference_vertprog(ctx, &ctx->VertexProgram._Current, newProg);