Rob Shearman : ole32: Disconnect the IRemUnknown stub buffer before destroying it to release the reference on the IRemUnknown object .
Alexandre Julliard
julliard at winehq.org
Mon Nov 12 06:27:43 CST 2007
Module: wine
Branch: master
Commit: 277909931999cf93487a000fd539eedc31bae62c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=277909931999cf93487a000fd539eedc31bae62c
Author: Rob Shearman <rob at codeweavers.com>
Date: Sun Nov 11 12:28:46 2007 +0000
ole32: Disconnect the IRemUnknown stub buffer before destroying it to release the reference on the IRemUnknown object.
---
dlls/ole32/oleproxy.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c
index 42dc8d1..9af6c59 100644
--- a/dlls/ole32/oleproxy.c
+++ b/dlls/ole32/oleproxy.c
@@ -509,7 +509,10 @@ static ULONG WINAPI RemUnkStub_Release(LPRPCSTUBBUFFER iface)
TRACE("(%p)->Release()\n",This);
refs = InterlockedDecrement(&This->refs);
if (!refs)
+ {
+ IRpcStubBuffer_Disconnect(iface);
HeapFree(GetProcessHeap(), 0, This);
+ }
return refs;
}
More information about the wine-cvs
mailing list