projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49134e8
)
free prog->Attributes in _mesa_delete_program()
author
Brian
<brian@nostromo.localnet.net>
Sat, 24 Mar 2007 22:18:13 +0000
(16:18 -0600)
committer
Brian
<brian@nostromo.localnet.net>
Sat, 24 Mar 2007 22:18:13 +0000
(16:18 -0600)
src/mesa/shader/program.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/program.c
b/src/mesa/shader/program.c
index c1606acb1a72581a7d05f1e3a8639bfaaa289070..e872d78611f54c184d55cfad1b79d947440d2275 100644
(file)
--- 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) {