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

ole32: Clean up properly in ClientRpcChannelBuffer_SendReceive in the case where…

ole32: Clean up properly in ClientRpcChannelBuffer_SendReceive in the case where PostMessageW fails.
parent 6262230a
......@@ -796,6 +796,14 @@ static HRESULT WINAPI ClientRpcChannelBuffer_SendReceive(LPRPCCHANNELBUFFER ifac
(LPARAM)&message_state->params))
{
ERR("PostMessage failed with error %u\n", GetLastError());
IRpcStubBuffer_Release(message_state->params.stub);
message_state->params.stub = NULL;
IRpcChannelBuffer_Release(message_state->params.chan);
message_state->params.chan = NULL;
/* Note: message_state->params.iface doesn't have a reference and
* so doesn't need to be released */
hr = HRESULT_FROM_WIN32(GetLastError());
}
}
......
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