Merge pull request #70103 from timothyqiu/tween-cleanup
Fix possible Tween leak on exit
This commit is contained in:
commit
5dda8ec88d
@ -594,6 +594,12 @@ void SceneTree::finalize() {
|
||||
timer->release_connections();
|
||||
}
|
||||
timers.clear();
|
||||
|
||||
// Cleanup tweens.
|
||||
for (Ref<Tween> &tween : tweens) {
|
||||
tween->clear();
|
||||
}
|
||||
tweens.clear();
|
||||
}
|
||||
|
||||
void SceneTree::quit(int p_exit_code) {
|
||||
|
Loading…
Reference in New Issue
Block a user