diff options
author | Francisco Jerez <[email protected]> | 2012-04-30 15:06:52 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2013-03-12 12:55:33 +0100 |
commit | 572bf83ec073702a747fbfd0da97caca26372f8e (patch) | |
tree | d83fcb8d79de464afc4e96f41b70066d2e02a233 /src/gallium/drivers | |
parent | 12f65e38c004c54f2e7c3c75b8151bb89a654f0c (diff) |
nv50/ir: Clean up references to function values before destroying them.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp | 4 |
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())); |