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)
TRACE("(%p)->Release()\n",This);
refs = InterlockedDecrement(&This->refs);
if (!refs)
{
IRpcStubBuffer_Disconnect(iface);
HeapFree(GetProcessHeap(), 0, This);
}
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