projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7f449
)
glsl_to_tgsi: fix a reference leak on an error path
author
Marek Olšák
<maraeo@gmail.com>
Thu, 25 Aug 2011 02:11:05 +0000
(
04:11
+0200)
committer
Marek Olšák
<maraeo@gmail.com>
Mon, 29 Aug 2011 20:31:10 +0000
(22:31 +0200)
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index
2266083
..
3fbb0cd
100644
(file)
--- 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;
}
}