fix instruction comment code

This commit is contained in:
Brian
2007-04-20 08:12:17 -06:00
parent a7f7366d38
commit 4cc2674aee
2 changed files with 9 additions and 1 deletions

View File

@@ -281,6 +281,8 @@ _mesa_delete_program(GLcontext *ctx, struct gl_program *prog)
for (i = 0; i < prog->NumInstructions; i++) {
if (prog->Instructions[i].Data)
_mesa_free(prog->Instructions[i].Data);
if (prog->Instructions[i].Comment)
_mesa_free((char *) prog->Instructions[i].Comment);
}
_mesa_free(prog->Instructions);
}