st/mesa: don't leak glsl_to_tgsi object on link failure
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
@@ -5549,6 +5549,7 @@ get_mesa_program(struct gl_context *ctx,
|
|||||||
*/
|
*/
|
||||||
_mesa_associate_uniform_storage(ctx, shader_program, prog->Parameters);
|
_mesa_associate_uniform_storage(ctx, shader_program, prog->Parameters);
|
||||||
if (!shader_program->LinkStatus) {
|
if (!shader_program->LinkStatus) {
|
||||||
|
free_glsl_to_tgsi_visitor(v);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user