Use mono_gc_wbarrier_set_arrayref for Array marshalling

This commit is contained in:
Ignacio Etcheverry 2017-11-01 00:17:34 +01:00
parent a4ea63737c
commit 0525b63421

View file

@ -600,7 +600,7 @@ MonoArray *Array_to_mono_array(const Array &p_array) {
for (int i = 0; i < p_array.size(); i++) {
MonoObject *boxed = variant_to_mono_object(p_array[i]);
mono_array_set(ret, MonoObject *, i, boxed);
mono_array_setref(ret, i, boxed);
}
return ret;