From 572bf83ec073702a747fbfd0da97caca26372f8e Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Mon, 30 Apr 2012 15:06:52 +0200 Subject: [PATCH] nv50/ir: Clean up references to function values before destroying them. --- src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(it.get())); -- 2.30.2