diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2023-11-21 12:52:55 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2023-11-21 12:52:55 +0100 |
commit | 1ed69191483002ee62ec5b4d5adb16d3bc315ef3 (patch) | |
tree | acbf88042845fe6e621ad094ed6f6db0ccb72163 /modules/gdscript/gdscript.h | |
parent | ac29e8e3fed8a8c8d74a267a60eee75b979bb994 (diff) | |
download | redot-engine-1ed69191483002ee62ec5b4d5adb16d3bc315ef3.tar.gz |
Fix leak in the bookkeeping of GDScript lambdas
Diffstat (limited to 'modules/gdscript/gdscript.h')
-rw-r--r-- | modules/gdscript/gdscript.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h index 9b99f5ca0b..8d62334d69 100644 --- a/modules/gdscript/gdscript.h +++ b/modules/gdscript/gdscript.h @@ -134,8 +134,8 @@ class GDScript : public Script { List<UpdatableFuncPtrElement> func_ptrs_to_update_elems; Mutex func_ptrs_to_update_mutex; - UpdatableFuncPtrElement *_add_func_ptr_to_update(GDScriptFunction **p_func_ptr_ptr); - static void _remove_func_ptr_to_update(const UpdatableFuncPtrElement *p_func_ptr_element); + List<UpdatableFuncPtrElement>::Element *_add_func_ptr_to_update(GDScriptFunction **p_func_ptr_ptr); + static void _remove_func_ptr_to_update(List<UpdatableFuncPtrElement>::Element *p_func_ptr_element); static void _fixup_thread_function_bookkeeping(); |