1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fixup thread-owned lambda bookkeeping on thread exit

This commit is contained in:
Pedro J. Estébanez
2023-11-09 12:38:01 +01:00
parent f3e96a8548
commit 271511726b
4 changed files with 107 additions and 18 deletions

View File

@@ -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);
}
}