summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvfx
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-08-23 00:16:23 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-08-23 00:16:59 +0200
commit8ffc3572281c24d1f97b3c119117918dca80f53e (patch)
treecd8bdf8285c0f73b4147e8e9238d0ed6d1abf0aa /src/gallium/drivers/nvfx
parentd507c0812d5a01d29f1f9f6942ec5cfd91ea0375 (diff)
nvfx: fix minor memory leak
Diffstat (limited to 'src/gallium/drivers/nvfx')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_fragprog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_fragprog.c b/src/gallium/drivers/nvfx/nvfx_fragprog.c
index 12b002a819..a7e43b1513 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)