* cominterop.c (ves_icall_System_Runtime_InteropServices_Marshal_ReleaseComObjectInternal):
changed to match .Net behaviour of not aborting on additional calls to ReleaseComObject.
svn path=/trunk/mono/; revision=132872
+2009-04-23 Tom Hindle <tom_hindle@sil.org>
+
+ * cominterop.c (ves_icall_System_Runtime_InteropServices_Marshal_ReleaseComObjectInternal):
+ changed to match .Net behaviour of not aborting on additional calls to ReleaseComObject.
+
2009-04-28 Sebastien Pouliot <sebastien@ximian.com>
* security-core-clr.c: Avoid redundant checks for platform code,
proxy = (MonoComInteropProxy*)((MonoTransparentProxy*)object)->rp;
g_assert (proxy);
+ if (proxy->ref_count == 0)
+ return -1;
+
ref_count = InterlockedDecrement (&proxy->ref_count);
+
g_assert (ref_count >= 0);
if (ref_count == 0)