diff options
author | Ben Skeggs <[email protected]> | 2008-06-12 14:21:28 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-06-29 15:46:17 +1000 |
commit | 619549a6377a58d54c9cf55f8863beed56b09566 (patch) | |
tree | 66d10f9ef973d97ea4de8209ba5dbc56a133833c /src/gallium | |
parent | 027ed25c12f69b39e205d3bbd26b68e9a02bea81 (diff) |
nv50: valgrind complaint
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_program.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c index f71aa19312f..af5ca84c8e7 100644 --- a/src/gallium/drivers/nv50/nv50_program.c +++ b/src/gallium/drivers/nv50/nv50_program.c @@ -146,8 +146,10 @@ static void free_temp(struct nv50_pc *pc, struct nv50_reg *r) { if (r->index == -1) { - FREE(pc->r_temp[r->hw]); - pc->r_temp[r->hw] = NULL; + unsigned hw = r->hw; + + FREE(pc->r_temp[hw]); + pc->r_temp[hw] = NULL; } } |