summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/codegen
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2012-04-30 15:06:52 +0200
committerChristoph Bumiller <[email protected]>2013-03-12 12:55:33 +0100
commit572bf83ec073702a747fbfd0da97caca26372f8e (patch)
treed83fcb8d79de464afc4e96f41b70066d2e02a233 /src/gallium/drivers/nv50/codegen
parent12f65e38c004c54f2e7c3c75b8151bb89a654f0c (diff)
nv50/ir: Clean up references to function values before destroying them.
Diffstat (limited to 'src/gallium/drivers/nv50/codegen')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp
index ebfb07a2b3e..549f48e6069 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp
@@ -57,6 +57,10 @@ Function::~Function()
if (bbArray)
delete[] bbArray;
+ // clear value refs and defs
+ ins.clear();
+ outs.clear();
+
for (ArrayList::Iterator it = allInsns.iterator(); !it.end(); it.next())
delete_Instruction(prog, reinterpret_cast<Instruction *>(it.get()));