view VBoxFrontend/MonoCOMInteropDoubleFree.patch @ 7:a7650e26195f tip

Added support for generating Com Callable Wrappers
author Ivo Smits
date Fri, 06 May 2011 08:12:43 +0200
parents b0033e69105a
children
line wrap: on
line source
???diff --git a/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs b/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs
index 54fefe2..1271257 100644
--- a/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs
+++ b/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs
@@ -93,12 +93,9 @@ namespace Mono.Interop
                        Marshal.ThrowExceptionForHR (hr);
                        ComInteropProxy obj = FindProxy (ppv);
                        if (obj == null) {
-                               Marshal.Release (pItf);
                                return new ComInteropProxy (ppv);
                        }
                        else {
-                               Marshal.Release (pItf);
-                               System.Threading.Interlocked.Increment (ref obj.ref_count);
                                return obj;
                        }
                }