Fixup thread-owned lambda bookkeeping on thread exit

This commit is contained in:
Pedro J. Estébanez committed 2023-11-10 00:05:38 +01:00
1 parent f3e96a8548
commit 271511726b
4 files changed
+107 -18

No files matched your search

@@ -296,5 +296,7 @@ GDScriptLambdaSelfCallable::GDScriptLambdaSelfCallable(Object *p_self, GDScriptF
}
GDScriptLambdaSelfCallable::~GDScriptLambdaSelfCallable() {
GDScript::_remove_func_ptr_to_update(updatable_func_ptr_element);
if (updatable_func_ptr_element) {
GDScript::_remove_func_ptr_to_update(updatable_func_ptr_element);
}
}