diff options
author | Ben Skeggs <[email protected]> | 2008-05-30 11:04:55 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-05-30 11:04:55 +1000 |
commit | 996b549fdbfe772ee56a51858e81e93bccaae5c5 (patch) | |
tree | 1c0667f1aa37ecbf2372c5762720236aa73e47e7 /src/gallium/drivers/nv40/nv40_vertprog.c | |
parent | 8b31d5fc8a5425b01adf80f4873cb816925ee0d1 (diff) |
nv40: a couple of memory leaks
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_vertprog.c')
-rw-r--r-- | src/gallium/drivers/nv40/nv40_vertprog.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv40/nv40_vertprog.c b/src/gallium/drivers/nv40/nv40_vertprog.c index e10250528e2..eb14869bfe0 100644 --- a/src/gallium/drivers/nv40/nv40_vertprog.c +++ b/src/gallium/drivers/nv40/nv40_vertprog.c @@ -843,6 +843,12 @@ nv40_vertprog_translate(struct nv40_context *nv40, vp->translated = TRUE; out_err: tgsi_parse_free(&parse); + if (vpc->r_temp) + FREE(vpc->r_temp); + if (vpc->r_address) + FREE(vpc->r_address); + if (vpc->imm) + FREE(vpc->imm); FREE(vpc); } |