Merge pull request #53571 from kleonc/scene-tree-free-objects-queued-during-destruction
This commit is contained in:
commit
034d43def7
@ -570,7 +570,11 @@ void SceneTree::finalize() {
|
||||
root = nullptr;
|
||||
}
|
||||
|
||||
// cleanup timers
|
||||
// In case deletion of some objects was queued when destructing the `root`.
|
||||
// E.g. if `queue_free()` was called for some node outside the tree when handling NOTIFICATION_PREDELETE for some node in the tree.
|
||||
_flush_delete_queue();
|
||||
|
||||
// Cleanup timers.
|
||||
for (Ref<SceneTreeTimer> &timer : timers) {
|
||||
timer->release_connections();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user