Android: Fix memory issues in _variant_to_jvalue()

This commit is contained in:
David Snopek committed 2025-11-26 11:17:34 -06:00
1 parent 9dd6c4dbac
commit c2f8d1a29b
7 files changed
+70 -77

No files matched your search

+1 -1
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()) {