summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/shader/program.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index c1606acb1a..e872d78611 100644
--- a/src/mesa/shader/program.c
+++ b/src/mesa/shader/program.c
@@ -288,10 +288,12 @@ _mesa_delete_program(GLcontext *ctx, struct gl_program *prog)
if (prog->Parameters) {
_mesa_free_parameter_list(prog->Parameters);
}
-
if (prog->Varying) {
_mesa_free_parameter_list(prog->Varying);
}
+ if (prog->Attributes) {
+ _mesa_free_parameter_list(prog->Attributes);
+ }
/* XXX this is a little ugly */
if (prog->Target == GL_VERTEX_PROGRAM_ARB) {