Commit 27790993 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Disconnect the IRemUnknown stub buffer before destroying it to release…

ole32: Disconnect the IRemUnknown stub buffer before destroying it to release the reference on the IRemUnknown object.
parent 8e51ab35
...@@ -509,7 +509,10 @@ static ULONG WINAPI RemUnkStub_Release(LPRPCSTUBBUFFER iface) ...@@ -509,7 +509,10 @@ static ULONG WINAPI RemUnkStub_Release(LPRPCSTUBBUFFER iface)
TRACE("(%p)->Release()\n",This); TRACE("(%p)->Release()\n",This);
refs = InterlockedDecrement(&This->refs); refs = InterlockedDecrement(&This->refs);
if (!refs) if (!refs)
{
IRpcStubBuffer_Disconnect(iface);
HeapFree(GetProcessHeap(), 0, This); HeapFree(GetProcessHeap(), 0, This);
}
return refs; return refs;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment