mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
nv50/ir: Clean up references to function values before destroying them.
This commit is contained in:
parent
12f65e38c0
commit
572bf83ec0
1 changed files with 4 additions and 0 deletions
|
|
@ -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()));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue