Commit e1ee3b4d authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Fix some memory leaks in the marshal tests.

parent c932790d
...@@ -756,6 +756,7 @@ static DWORD CALLBACK no_couninitialize_client_proc(LPVOID p) ...@@ -756,6 +756,7 @@ static DWORD CALLBACK no_couninitialize_client_proc(LPVOID p)
hr = CoUnmarshalInterface(ncu_params->stream, &IID_IClassFactory, (void **)&pProxy); hr = CoUnmarshalInterface(ncu_params->stream, &IID_IClassFactory, (void **)&pProxy);
ok_ole_success(hr, CoUnmarshalInterface); ok_ole_success(hr, CoUnmarshalInterface);
IStream_Release(ncu_params->stream);
ok_more_than_one_lock(); ok_more_than_one_lock();
...@@ -824,6 +825,7 @@ static void test_tableweak_marshal_and_unmarshal_twice(void) ...@@ -824,6 +825,7 @@ static void test_tableweak_marshal_and_unmarshal_twice(void)
IStream_Seek(pStream, ullZero, STREAM_SEEK_SET, NULL); IStream_Seek(pStream, ullZero, STREAM_SEEK_SET, NULL);
hr = CoUnmarshalInterface(pStream, &IID_IClassFactory, (void **)&pProxy2); hr = CoUnmarshalInterface(pStream, &IID_IClassFactory, (void **)&pProxy2);
IStream_Release(pStream);
ok_ole_success(hr, CoUnmarshalInterface); ok_ole_success(hr, CoUnmarshalInterface);
ok_more_than_one_lock(); ok_more_than_one_lock();
...@@ -1998,6 +2000,7 @@ static void test_ROT(void) ...@@ -1998,6 +2000,7 @@ static void test_ROT(void)
ok_ole_success(hr, GetRunningObjectTable); ok_ole_success(hr, GetRunningObjectTable);
hr = IRunningObjectTable_Register(pROT, 0, (IUnknown*)&Test_ClassFactory, pMoniker, &dwCookie); hr = IRunningObjectTable_Register(pROT, 0, (IUnknown*)&Test_ClassFactory, pMoniker, &dwCookie);
ok_ole_success(hr, IRunningObjectTable_Register); ok_ole_success(hr, IRunningObjectTable_Register);
IMoniker_Release(pMoniker);
ok_more_than_one_lock(); ok_more_than_one_lock();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment