Commit 7839aa22 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

atl100/tests: Fixed some leaks (Valgrind).

parent 4b35cf73
......@@ -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);
}
......
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