diff options
author | Marek Olšák <[email protected]> | 2011-08-25 04:11:05 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-08-29 22:31:10 +0200 |
commit | b2064ff3115afa075021902ecd35f4a5a772dc9e (patch) | |
tree | 87b32aaefd539a1ec7c45a01a6863a37eb1aeb29 /src/mesa/state_tracker | |
parent | dc7f449d1ac53a66e6efb56ccf2a5953418a26ca (diff) |
glsl_to_tgsi: fix a reference leak on an error path
Diffstat (limited to 'src/mesa/state_tracker')
-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 22660830a9b..3fbb0cdd248 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -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; } } |