mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
glsl_to_tgsi: fix a reference leak on an error path
This commit is contained in:
parent
dc7f449d1a
commit
b2064ff311
1 changed files with 1 additions and 0 deletions
|
|
@ -5050,6 +5050,7 @@ st_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
|
|||
break;
|
||||
}
|
||||
if (!ok) {
|
||||
_mesa_reference_program(ctx, &linked_prog, NULL);
|
||||
return GL_FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue