Fix memory leak in _tnl_UpdateFixedFunctionProgram

This commit is contained in:
Shunichi Fuji
2008-05-16 13:18:06 -07:00
committed by Eric Anholt
parent 0639998ee8
commit e6cd9d88d3
+2
View File
@@ -1572,6 +1572,8 @@ void _tnl_UpdateFixedFunctionProgram( GLcontext *ctx )
cache_item(ctx, tnl->vp_cache, hash, key, newProg);
_mesa_reference_vertprog(ctx, &ctx->VertexProgram._TnlProgram, newProg);
} else {
FREE(key);
}
_mesa_reference_vertprog(ctx, &ctx->VertexProgram._TnlProgram, newProg);