From: Luca Barbieri Date: Sun, 22 Aug 2010 22:16:23 +0000 (+0200) Subject: nvfx: fix minor memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ffc3572281c24d1f97b3c119117918dca80f53e;p=mesa.git nvfx: fix minor memory leak --- diff --git a/src/gallium/drivers/nvfx/nvfx_fragprog.c b/src/gallium/drivers/nvfx/nvfx_fragprog.c index 12b002a8198..a7e43b1513b 100644 --- a/src/gallium/drivers/nvfx/nvfx_fragprog.c +++ b/src/gallium/drivers/nvfx/nvfx_fragprog.c @@ -1518,7 +1518,7 @@ nvfx_fragprog_destroy(struct nvfx_context *nvfx, while(fpbo != fp->fpbo); } - for(i = 0; i < 8; ++i) + for(i = 0; i < Elements(fp->slot_relocations); ++i) util_dynarray_fini(&fp->slot_relocations[i]); if (fp->insn_len)