Debugger: DwarfFile: Clean up type units on delete.
This commit is contained in:
parent
6882d4b5d7
commit
142f7cabdc
@ -490,6 +490,13 @@ DwarfFile::~DwarfFile()
|
||||
delete fAlternateElfFile;
|
||||
}
|
||||
|
||||
TypeUnitTableEntry* entry = fTypeUnits.Clear(true);
|
||||
while (entry != NULL) {
|
||||
TypeUnitTableEntry* nextEntry = entry->next;
|
||||
delete entry;
|
||||
entry = nextEntry;
|
||||
}
|
||||
|
||||
free(fName);
|
||||
free(fAlternateName);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user