Mercurial > hg > vboxdotnet
comparison VBoxFrontend/MonoCOMInteropDoubleFree.patch @ 3:b0033e69105a
Set group ID during initialization, added a patch to mono to fix a double free 'bug'
author | Ivo Smits |
---|---|
date | Wed, 04 May 2011 16:32:10 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:f1deea9c97a0 | 3:b0033e69105a |
---|---|
1 diff --git a/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs b/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs | |
2 index 54fefe2..1271257 100644 | |
3 --- a/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs | |
4 +++ b/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs | |
5 @@ -93,12 +93,9 @@ namespace Mono.Interop | |
6 Marshal.ThrowExceptionForHR (hr); | |
7 ComInteropProxy obj = FindProxy (ppv); | |
8 if (obj == null) { | |
9 - Marshal.Release (pItf); | |
10 return new ComInteropProxy (ppv); | |
11 } | |
12 else { | |
13 - Marshal.Release (pItf); | |
14 - System.Threading.Interlocked.Increment (ref obj.ref_count); | |
15 return obj; | |
16 } | |
17 } |