aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-03-24 16:18:13 -0600
committerBrian <[email protected]>2007-03-24 16:18:13 -0600
commit3493e867e9f2421425627a15eb5d2a2c554fbe8a (patch)
treea72f532032d0a2af52a4f5e681b21b9f61aef0ba
parent49134e8e53d4ae114044ff90174a6777ffbecc60 (diff)
free prog->Attributes in _mesa_delete_program()
-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 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) {