Skip to content

Commit e5c131f

Browse files
DCTewiSpartan322
authored andcommitted
Core: Fix SceneTreeTimer leaked when awaiting it while quitting
(cherry picked from commit DCTewi/godot@e45eb85)
1 parent a06b0a0 commit e5c131f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/gdscript/gdscript_function.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,5 +289,10 @@ GDScriptFunctionState::~GDScriptFunctionState() {
289289
MutexLock lock(GDScriptLanguage::singleton->mutex);
290290
scripts_list.remove_from_list();
291291
instances_list.remove_from_list();
292+
293+
_clear_connections();
294+
if (ObjectDB::get_instance(get_instance_id())) {
295+
_clear_stack();
296+
}
292297
}
293298
}

0 commit comments

Comments
 (0)