From e24d1809ef660b5fb8d01fed7bbaa5a1bba3848c Mon Sep 17 00:00:00 2001 From: John Date: Tue, 28 Oct 2025 20:18:15 +0000 Subject: [PATCH] Explicitly destroy Vector2 --- tutorials/scripting/gdextension/gdextension_c_example.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/scripting/gdextension/gdextension_c_example.rst b/tutorials/scripting/gdextension/gdextension_c_example.rst index 6349b6d9a..9717539b7 100644 --- a/tutorials/scripting/gdextension/gdextension_c_example.rst +++ b/tutorials/scripting/gdextension/gdextension_c_example.rst @@ -2010,8 +2010,9 @@ implement the helper function. // Call the function. api.object_method_bind_call(p_method_bind, p_instance, args, 2, &ret, NULL); - // Destroy the arguments that need it. + // Destroy the arguments. destructors.variant_destroy(&arg1); + destructors.variant_destroy(&arg2); destructors.variant_destroy(&ret); }