From 277909931999cf93487a000fd539eedc31bae62c Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 11 Nov 2007 12:28:46 +0000 Subject: [PATCH] ole32: Disconnect the IRemUnknown stub buffer before destroying it to release the reference on the IRemUnknown object. --- dlls/ole32/oleproxy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c index 42dc8d1023d..9af6c59423d 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; }