mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
fixed issue in GTree where calling setChildren with exiting children put
the tree in a bad state
This commit is contained in:
@@ -169,7 +169,11 @@ abstract class CoreGTreeNode implements Cloneable {
|
||||
|
||||
if (oldChildren != null) {
|
||||
for (GTreeNode node : oldChildren) {
|
||||
node.dispose();
|
||||
// only dispose old nodes that aren't included in the new child list - if any
|
||||
// old nodes don't have a parent, then they were not include in the new list
|
||||
if (node.getParent() == null) {
|
||||
node.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user