diff options
author | Ilia Mirkin <[email protected]> | 2015-05-17 17:32:24 -0400 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-06-03 11:52:39 +0100 |
commit | 56d13627ebb07cac52401714f11a92be6b2d34e6 (patch) | |
tree | fd62d9d688f17cba8e400bd27bf0bfab51e9f3d1 /src | |
parent | a10c9c6725259c55281a17efc98566c659ba9146 (diff) |
st/mesa: don't leak glsl_to_tgsi object on link failure
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Cc: "10.5 10.6" <[email protected]>
(cherry picked from commit bb973723a5e1f27817b6be2c2fa4fb3ea28e733c)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 3a8639fafc4..5306d6dc956 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -5339,6 +5339,7 @@ get_mesa_program(struct gl_context *ctx, */ _mesa_associate_uniform_storage(ctx, shader_program, prog->Parameters); if (!shader_program->LinkStatus) { + free_glsl_to_tgsi_visitor(v); return NULL; } |