summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2015-05-17 17:32:24 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2015-05-25 15:45:12 -0400
commitbb973723a5e1f27817b6be2c2fa4fb3ea28e733c (patch)
tree0c0eb309233627b26db8f0645dc165fbe6023e12 /src
parent147816375d22a653176ab28ed650fa811ceea83f (diff)
downloadexternal_mesa3d-bb973723a5e1f27817b6be2c2fa4fb3ea28e733c.zip
external_mesa3d-bb973723a5e1f27817b6be2c2fa4fb3ea28e733c.tar.gz
external_mesa3d-bb973723a5e1f27817b6be2c2fa4fb3ea28e733c.tar.bz2
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>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp1
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 f0f2a77..719d081 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -5549,6 +5549,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;
}