[PATCH] atl100/tests: Fix a memory leak (Valgrind).

Gijs Vermeulen gijsvrm at gmail.com
Wed Jan 16 18:37:14 CST 2019


Signed-off-by: Gijs Vermeulen <gijsvrm at gmail.com>
---
 dlls/atl100/tests/atl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/atl100/tests/atl.c b/dlls/atl100/tests/atl.c
index bdd3c57eb0..d23c53c104 100644
--- a/dlls/atl100/tests/atl.c
+++ b/dlls/atl100/tests/atl.c
@@ -964,6 +964,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;
-- 
2.20.1




More information about the wine-devel mailing list