Merge pull request #12546 from neikeq/do-people-read-these

Use mono_gc_wbarrier_set_arrayref for Array marshalling
This commit is contained in:
Ignacio Etcheverry 2017-11-01 01:52:42 +01:00 committed by GitHub
commit cb3ef3c7e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;