oleaut32: Fix a reference count leak of the TMarshalDispatchChannel.

This commit is contained in:
Rob Shearman 2007-12-06 14:06:11 +00:00 committed by Alexandre Julliard
parent 5d88c0cbad
commit bc9b5c22fe
1 changed files with 3 additions and 1 deletions

View File

@ -471,7 +471,9 @@ TMProxyImpl_Connect(
HRESULT hr = TMarshalDispatchChannel_Create(pRpcChannelBuffer, &This->iid, &pDelegateChannel);
if (FAILED(hr))
return hr;
return IRpcProxyBuffer_Connect(This->dispatch_proxy, pDelegateChannel);
hr = IRpcProxyBuffer_Connect(This->dispatch_proxy, pDelegateChannel);
IRpcChannelBuffer_Release(pDelegateChannel);
return hr;
}
return S_OK;