From 3493e867e9f2421425627a15eb5d2a2c554fbe8a Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 24 Mar 2007 16:18:13 -0600 Subject: [PATCH] free prog->Attributes in _mesa_delete_program() --- src/mesa/shader/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index c1606acb1a7..e872d78611f 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) { -- 2.30.2