Rob Shearman : ole32: Fix some memory leaks in the marshal tests.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 23 10:02:43 CDT 2006


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Mon Oct 23 11:28:58 2006 +0100

ole32: Fix some memory leaks in the marshal tests.

---

 dlls/ole32/tests/marshal.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/tests/marshal.c b/dlls/ole32/tests/marshal.c
index f2fce85..d4f6b78 100644
--- a/dlls/ole32/tests/marshal.c
+++ b/dlls/ole32/tests/marshal.c
@@ -756,6 +756,7 @@ static DWORD CALLBACK no_couninitialize_
 
     hr = CoUnmarshalInterface(ncu_params->stream, &IID_IClassFactory, (void **)&pProxy);
     ok_ole_success(hr, CoUnmarshalInterface);
+    IStream_Release(ncu_params->stream);
 
     ok_more_than_one_lock();
 
@@ -824,6 +825,7 @@ static void test_tableweak_marshal_and_u
 
     IStream_Seek(pStream, ullZero, STREAM_SEEK_SET, NULL);
     hr = CoUnmarshalInterface(pStream, &IID_IClassFactory, (void **)&pProxy2);
+    IStream_Release(pStream);
     ok_ole_success(hr, CoUnmarshalInterface);
 
     ok_more_than_one_lock();
@@ -1998,6 +2000,7 @@ static void test_ROT(void)
     ok_ole_success(hr, GetRunningObjectTable);
     hr = IRunningObjectTable_Register(pROT, 0, (IUnknown*)&Test_ClassFactory, pMoniker, &dwCookie);
     ok_ole_success(hr, IRunningObjectTable_Register);
+    IMoniker_Release(pMoniker);
 
     ok_more_than_one_lock();
 




More information about the wine-cvs mailing list