mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-06 19:01:03 +01: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.nodeOrder.remove(key);
|
||||
updateParent(null);
|
||||
|
||||
for (ConfigNode child : childNodes.values()) {
|
||||
child.remove();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user