mirror of
https://github.com/reactos/wine.git
synced 2025-03-03 18:28:58 +00:00
atl100/tests: Fixed some leaks (Valgrind).
This commit is contained in:
parent
4b35cf730f
commit
7839aa22c3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user