From: Brian Date: Sat, 24 Mar 2007 22:18:13 +0000 (-0600) Subject: free prog->Attributes in _mesa_delete_program() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3493e867e9f2421425627a15eb5d2a2c554fbe8a;p=mesa.git free prog->Attributes in _mesa_delete_program() --- 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) {