Merge pull request #70103 from timothyqiu/tween-cleanup

Fix possible Tween leak on exit
This commit is contained in:
Rémi Verschelde 2022-12-15 22:09:32 +01:00
commit 5dda8ec88d
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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) {