free prog->Attributes in _mesa_delete_program()
authorBrian <brian@nostromo.localnet.net>
Sat, 24 Mar 2007 22:18:13 +0000 (16:18 -0600)
committerBrian <brian@nostromo.localnet.net>
Sat, 24 Mar 2007 22:18:13 +0000 (16:18 -0600)
src/mesa/shader/program.c

index c1606acb1a72581a7d05f1e3a8639bfaaa289070..e872d78611f54c184d55cfad1b79d947440d2275 100644 (file)
@@ -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) {