1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-02 16:48:55 +00:00

Android: Fix memory issues in _variant_to_jvalue()

This commit is contained in:
David Snopek
2025-11-25 13:32:07 -06:00
parent 9dd6c4dbac
commit c2f8d1a29b
7 changed files with 70 additions and 77 deletions

View File

@@ -393,7 +393,7 @@ bool JavaClass::_call_method(JavaObject *p_instance, const StringName &p_method,
} break;
case ARG_TYPE_CLASS: {
if (p_args[i]->get_type() == Variant::DICTIONARY) {
argv[i].l = _variant_to_jvalue(env, Variant::DICTIONARY, p_args[i]).l;
argv[i].l = _variant_to_jobject(env, Variant::DICTIONARY, p_args[i]);
} else {
Ref<JavaObject> jo = *p_args[i];
if (jo.is_valid()) {