Fix possible Tween leak on exit
This commit is contained in:
parent
fc9b6ef07f
commit
e173710963
1 changed files with 6 additions and 0 deletions
|
@ -594,6 +594,12 @@ void SceneTree::finalize() {
|
||||||
timer->release_connections();
|
timer->release_connections();
|
||||||
}
|
}
|
||||||
timers.clear();
|
timers.clear();
|
||||||
|
|
||||||
|
// Cleanup tweens.
|
||||||
|
for (Ref<Tween> &tween : tweens) {
|
||||||
|
tween->clear();
|
||||||
|
}
|
||||||
|
tweens.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SceneTree::quit(int p_exit_code) {
|
void SceneTree::quit(int p_exit_code) {
|
||||||
|
|
Loading…
Reference in a new issue