Rob Shearman : oleaut32: Fix a reference count leak of the TMarshalDispatchChannel.

Alexandre Julliard julliard at winehq.org
Fri Dec 7 11:02:14 CST 2007


Module: wine
Branch: master
Commit: bc9b5c22fea6a0f29bc68fc5ccbfdb97a778e490
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bc9b5c22fea6a0f29bc68fc5ccbfdb97a778e490

Author: Rob Shearman <rob at 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;




More information about the wine-cvs mailing list