nv50/ir: Clean up references to function values before destroying them.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 30 Apr 2012 13:06:52 +0000 (15:06 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 12 Mar 2013 11:55:33 +0000 (12:55 +0100)
src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp

index ebfb07a..549f48e 100644 (file)
@@ -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()));