mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-18 09:41:02 +02:00
ConfigNode#remove now recursively removes the children
This is to avoid memory leaks from removals
This commit is contained in:
parent
23c32d00b8
commit
7b0a178f70
@ -125,6 +125,11 @@ public class ConfigNode {
|
|||||||
parent.childNodes.remove(key);
|
parent.childNodes.remove(key);
|
||||||
parent.nodeOrder.remove(key);
|
parent.nodeOrder.remove(key);
|
||||||
updateParent(null);
|
updateParent(null);
|
||||||
|
|
||||||
|
for (ConfigNode child : childNodes.values()) {
|
||||||
|
child.remove();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user