Rob Shearman : oleaut32: Fix some reference count leaks in the tmarshal test.

Alexandre Julliard julliard at winehq.org
Mon Feb 4 08:42:58 CST 2008


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Thu Jan 31 14:44:28 2008 +0000

oleaut32: Fix some reference count leaks in the tmarshal test.

---

 dlls/oleaut32/tests/tmarshal.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c
index 7e958de..98ed428 100644
--- a/dlls/oleaut32/tests/tmarshal.c
+++ b/dlls/oleaut32/tests/tmarshal.c
@@ -785,6 +785,7 @@ static void test_typelibmarshal(void)
     hr = CreateStreamOnHGlobal(NULL, TRUE, &pStream);
     ok_ole_success(hr, CreateStreamOnHGlobal);
     tid = start_host_object(pStream, &IID_IKindaEnumWidget, (IUnknown *)pKEW, MSHLFLAGS_NORMAL, &thread);
+    IKindaEnumWidget_Release(pKEW);
 
     IStream_Seek(pStream, ullZero, STREAM_SEEK_SET, NULL);
     hr = CoUnmarshalInterface(pStream, &IID_IKindaEnumWidget, (void **)&pKEW);
@@ -1163,6 +1164,7 @@ static void test_DispCallFunc(void)
     VariantClear(&varresult);
     VariantClear(&vararg[1]);
     VariantClear(&vararg[2]);
+    IWidget_Release(pWidget);
 }
 
 START_TEST(tmarshal)




More information about the wine-cvs mailing list