[ATL100_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
[reactos.git] / rostests / winetests / atl100 / atl.c
index 4ba4d55..079be24 100644 (file)
@@ -924,6 +924,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;
@@ -934,6 +936,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;
@@ -944,6 +948,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;
@@ -954,6 +960,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;
@@ -984,6 +992,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 */
@@ -997,6 +1007,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. */
@@ -1010,6 +1022,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);
 }