summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-04-19 15:23:34 -0600
committerBrian <brian@yutani.localnet.net>2007-04-21 10:05:05 -0600
commit4b7c6fc5a655bfb8f165cb94521bc49521303a35 (patch)
tree9a1d4afb7e51ecd8df68cc4bc8c403e1b27ee96e /src/mesa/shader
parentfe16b9f6633e468aa2244c36e540c1cfac2517e6 (diff)
free shProg->Attributes in _mesa_free_shader_program_data()
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/shader_api.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index 418ef5c723..64f2a9fa12 100644
--- 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);