aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorShunichi Fuji <[email protected]>2008-05-16 10:11:25 -0600
committerBrian Paul <[email protected]>2008-05-16 15:16:06 -0600
commite291cf6f8d3423c2f1e123ec2a42f0568019da80 (patch)
tree972667afc9b3df68446ad50c8d6e865480a6e527 /src/mesa/tnl
parent8bdf5b6e6465ff734a798efb193ab16cd33df36e (diff)
free(key) in _tnl_UpdateFixedFunctionProgram()
Diffstat (limited to 'src/mesa/tnl')
-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 4a0ce447c6b..4432893f175 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);