You've already forked godot
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user