annotate 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
rev   line source
3
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
1 ???diff --git a/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs b/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
2 index 54fefe2..1271257 100644
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
3 --- a/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
4 +++ b/mcs/class/corlib/Mono.Interop/ComInteropProxy.cs
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
5 @@ -93,12 +93,9 @@ namespace Mono.Interop
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
6 Marshal.ThrowExceptionForHR (hr);
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
7 ComInteropProxy obj = FindProxy (ppv);
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
8 if (obj == null) {
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
9 - Marshal.Release (pItf);
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
10 return new ComInteropProxy (ppv);
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
11 }
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
12 else {
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
13 - Marshal.Release (pItf);
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
14 - System.Threading.Interlocked.Increment (ref obj.ref_count);
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
15 return obj;
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
16 }
b0033e69105a Set group ID during initialization, added a patch to mono to fix a double free 'bug'
Ivo Smits
parents:
diff changeset
17 }