Kieran Duggan : atl100/tests: Fix leaked memory during test_AtlAxAttachControl.

Alexandre Julliard julliard at winehq.org
Mon Mar 26 16:01:23 CDT 2018


Module: wine
Branch: master
Commit: ecb8d9f55184a85251ef5cb2f6eb9d042245bfde
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ecb8d9f55184a85251ef5cb2f6eb9d042245bfde

Author: Kieran Duggan <KieranDuggan15 at gmail.com>
Date:   Mon Mar 26 13:11:09 2018 -0400

atl100/tests: Fix leaked memory during test_AtlAxAttachControl.

Signed-off-by: Kieran Duggan <kieranduggan15 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/atl100/tests/atl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/atl100/tests/atl.c b/dlls/atl100/tests/atl.c
index c6e5cda..eecf079 100644
--- a/dlls/atl100/tests/atl.c
+++ b/dlls/atl100/tests/atl.c
@@ -902,6 +902,7 @@ static void test_AtlAxAttachControl(void)
     hr = AtlAxAttachControl(control, hwnd, &container);
     ok(hr == S_OK, "Expected AtlAxAttachControl to return S_OK, got 0x%08x\n", hr);
     ok(container != NULL, "Expected not NULL!\n");
+    IUnknown_Release(container);
     val = GetWindowLongW(hwnd, GWLP_USERDATA);
     ok(val == 0xdeadbeef, "Expected unchanged, returned %08x\n", val);
     DestroyWindow(hwnd);




More information about the wine-cvs mailing list