Skip to content

Commit bcaeef9

Browse files
DCTewiSpartan322
authored andcommitted
Core: Fix SceneTreeTimer leaked when awaiting it while quitting
(cherry picked from commit e45eb85563c7b98cbb71f0a15123e5cc37523f19)
1 parent d979007 commit bcaeef9

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)