ole32: Disconnect the IRemUnknown stub buffer before destroying it to release the reference on the IRemUnknown object.
This commit is contained in:
parent
8e51ab35be
commit
2779099319
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue