Nikolay Sivov : atl100/tests: Fixed some leaks (Valgrind).
Alexandre Julliard
julliard at wine.codeweavers.com
Tue May 5 09:50:51 CDT 2015
Module: wine
Branch: master
Commit: 7839aa22c3398a0efd0fd69461f3dfbef94f3908
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7839aa22c3398a0efd0fd69461f3dfbef94f3908
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue May 5 10:34:19 2015 +0300
atl100/tests: Fixed some leaks (Valgrind).
---
dlls/atl100/tests/atl.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/dlls/atl100/tests/atl.c b/dlls/atl100/tests/atl.c
index f6cc85b..d07a523 100644
--- a/dlls/atl100/tests/atl.c
+++ b/dlls/atl100/tests/atl.c
@@ -916,6 +916,8 @@ static void test_AtlAxCreateControl(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(container != NULL, "returned %p!\n", container);
ok(control != NULL, "returned %p\n", control);
+ IUnknown_Release(container);
+ IUnknown_Release(control);
DestroyWindow(hwnd);
container = NULL;
@@ -926,6 +928,8 @@ static void test_AtlAxCreateControl(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(container != NULL, "returned %p!\n", container);
ok(control != NULL, "returned %p\n", control);
+ IUnknown_Release(container);
+ IUnknown_Release(control);
DestroyWindow(hwnd);
container = NULL;
@@ -936,6 +940,8 @@ static void test_AtlAxCreateControl(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(container != NULL, "returned %p!\n", container);
ok(control != NULL, "returned %p\n", control);
+ IUnknown_Release(container);
+ IUnknown_Release(control);
DestroyWindow(hwnd);
container = NULL;
@@ -946,6 +952,8 @@ static void test_AtlAxCreateControl(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(container != NULL, "returned %p!\n", container);
ok(control != NULL, "returned %p\n", control);
+ IUnknown_Release(container);
+ IUnknown_Release(control);
DestroyWindow(hwnd);
container = (IUnknown *)0xdeadbeef;
@@ -976,6 +984,8 @@ static void test_AtlAxCreateControl(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(container != NULL, "returned %p!\n", container);
ok(control != NULL, "returned %p\n", control);
+ IUnknown_Release(container);
+ IUnknown_Release(control);
DestroyWindow(hwnd);
/* test file:// scheme */
@@ -989,6 +999,8 @@ static void test_AtlAxCreateControl(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(container != NULL, "returned %p!\n", container);
ok(control != NULL, "returned %p\n", control);
+ IUnknown_Release(container);
+ IUnknown_Release(control);
DestroyWindow(hwnd);
/* test file:// scheme on non-existent file. */
@@ -1002,6 +1014,8 @@ static void test_AtlAxCreateControl(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(container != NULL, "returned %p!\n", container);
ok(control != NULL, "returned %p\n", control);
+ IUnknown_Release(container);
+ IUnknown_Release(control);
DestroyWindow(hwnd);
}
More information about the wine-cvs
mailing list