commit | 4cc2674aee98a4c2972f4f097a89b7b4a30df4ab | [log] [tgz] |
---|---|---|
author | Brian <brian@yutani.localnet.net> | Fri Apr 20 08:12:17 2007 -0600 |
committer | Brian <brian@yutani.localnet.net> | Sat Apr 21 10:05:05 2007 -0600 |
tree | 54c9d2bfd8450815725d2e24ebd226c4699041db | |
parent | a7f7366d382b2fe124f1495baf0360bffa30f0c0 [diff] [blame] |
fix instruction comment code
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index e872d78..4205919 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c
@@ -281,6 +281,8 @@ 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); }