Module: wine Branch: master Commit: bc9b5c22fea6a0f29bc68fc5ccbfdb97a778e490 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bc9b5c22fea6a0f29bc68fc5cc...
Author: Rob Shearman rob@codeweavers.com Date: Thu Dec 6 14:06:11 2007 +0000
oleaut32: Fix a reference count leak of the TMarshalDispatchChannel.
---
dlls/oleaut32/tmarshal.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index 75e3d3b..6e5f494 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -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;