diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-28 17:26:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 17:26:44 +0200 |
commit | 622b656c40f9d8d9c8fdd45d6727f416952636d7 (patch) | |
tree | 3f725349ae1715e32441aae96271795d9f153e33 /modules/gdscript | |
parent | 2ea7765f7678cb187f15cf4bf585a2f5536f94c3 (diff) | |
parent | 6141ce2cb8ae54965190257a1ffd6a6abd02aaea (diff) |
Merge pull request #53135 from briansemrau/fix-ref-leak
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_vm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_vm.cpp b/modules/gdscript/gdscript_vm.cpp index 16a8e728e4..1d56dae982 100644 --- a/modules/gdscript/gdscript_vm.cpp +++ b/modules/gdscript/gdscript_vm.cpp @@ -1897,7 +1897,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a VariantInternal::initialize(ret, Variant::OBJECT); Object **ret_opaque = VariantInternal::get_object(ret); method->ptrcall(base_obj, argptrs, ret_opaque); - VariantInternal::object_assign(ret, *ret_opaque); // Set so ID is correct too. + VariantInternal::update_object_id(ret); #ifdef DEBUG_ENABLED if (GDScriptLanguage::get_singleton()->profiling) { |