From 4b7c6fc5a655bfb8f165cb94521bc49521303a35 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 19 Apr 2007 15:23:34 -0600 Subject: [PATCH] free shProg->Attributes in _mesa_free_shader_program_data() --- src/mesa/shader/shader_api.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c index 418ef5c7239..64f2a9fa126 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); -- 2.30.2