projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
027ed25
)
nv50: valgrind complaint
author
Ben Skeggs
<skeggsb@gmail.com>
Thu, 12 Jun 2008 04:21:28 +0000
(14:21 +1000)
committer
Ben Skeggs
<skeggsb@gmail.com>
Sun, 29 Jun 2008 05:46:17 +0000
(15:46 +1000)
src/gallium/drivers/nv50/nv50_program.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv50/nv50_program.c
b/src/gallium/drivers/nv50/nv50_program.c
index f71aa19312f872c4f6b9a779531f104661c4234c..af5ca84c8e79e63e96cfa9b79333d63affe27ecf 100644
(file)
--- 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;
}
}