Skip to content

Commit 709dbb1

Browse files
author
John
committed
Explicitly destroy Vector2
1 parent ae0c5ee commit 709dbb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tutorials/scripting/gdextension/gdextension_c_example.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,8 +2010,9 @@ implement the helper function.
20102010
// Call the function.
20112011
api.object_method_bind_call(p_method_bind, p_instance, args, 2, &ret, NULL);
20122012
2013-
// Destroy the arguments that need it.
2013+
// Destroy the arguments.
20142014
destructors.variant_destroy(&arg1);
2015+
destructors.variant_destroy(&arg2);
20152016
destructors.variant_destroy(&ret);
20162017
}
20172018

0 commit comments

Comments
 (0)