projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe16b9f
)
free shProg->Attributes in _mesa_free_shader_program_data()
author
Brian
<brian@yutani.localnet.net>
Thu, 19 Apr 2007 21:23:34 +0000
(15:23 -0600)
committer
Brian
<brian@yutani.localnet.net>
Sat, 21 Apr 2007 16:05:05 +0000
(10:05 -0600)
src/mesa/shader/shader_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/shader_api.c
b/src/mesa/shader/shader_api.c
index 418ef5c72391f42d5e3af304ab3fcdb30fe5b72e..64f2a9fa12682be847da004a57147aec6a122cec 100644
(file)
--- a/
src/mesa/shader/shader_api.c
+++ b/
src/mesa/shader/shader_api.c
@@
-119,6
+119,11
@@
_mesa_free_shader_program_data(GLcontext *ctx,
_mesa_clear_shader_program_data(ctx, shProg);
+ if (shProg->Attributes) {
+ _mesa_free_parameter_list(shProg->Attributes);
+ shProg->Attributes = NULL;
+ }
+
/* detach shaders */
for (i = 0; i < shProg->NumShaders; i++) {
_mesa_reference_shader(ctx, &shProg->Shaders[i], NULL);