[runtime] Fix bug when marshaling COM interfaces in arrays
authorDamien Daspit <damien_daspit@sil.org>
Thu, 17 Nov 2016 03:47:47 +0000 (10:47 +0700)
committerEberhard Beilharz <eb1@sil.org>
Tue, 8 Aug 2017 21:18:23 +0000 (17:18 -0400)
commitdc0400056ce43c5cc0f69853acab03a821c3f339
tree73ca07dffd002cb85600f2025c3901546cda9c58
parentfe836ec75603a22af7ff9216af481cb78fcabe08
[runtime] Fix bug when marshaling COM interfaces in arrays

* use the correct COM interface when creating native array
* do not free CCWs when freeing the native array

This fixes Xamarin-47560.
mono/metadata/cominterop.c
mono/metadata/cominterop.h
mono/metadata/marshal.c