Sven Baars : hlink/tests: Fix some memory leaks (Valgrind).
Alexandre Julliard
julliard at winehq.org
Wed Jan 23 17:11:34 CST 2019
Module: wine
Branch: master
Commit: aab7fcd393e5241d14c6b0f06e6bb2a5b758b479
URL: https://source.winehq.org/git/wine.git/?a=commit;h=aab7fcd393e5241d14c6b0f06e6bb2a5b758b479
Author: Sven Baars <sven.wine at gmail.com>
Date: Mon Jan 21 20:34:49 2019 +0100
hlink/tests: Fix some memory leaks (Valgrind).
Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/hlink/tests/browse_ctx.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/dlls/hlink/tests/browse_ctx.c b/dlls/hlink/tests/browse_ctx.c
index 3193525..95a72d7 100644
--- a/dlls/hlink/tests/browse_ctx.c
+++ b/dlls/hlink/tests/browse_ctx.c
@@ -165,16 +165,12 @@ static void test_GetObject(void)
{
IHlinkBrowseContext *bc;
IMoniker *dummy;
- IBindCtx *bindctx;
IUnknown *unk;
WCHAR one[] = {'1',0};
WCHAR five[] = {'5',0};
DWORD cookie;
HRESULT hres;
- hres = CreateBindCtx(0, &bindctx);
- ok(hres == S_OK, "CreateBindCtx() failed: 0x%08x\n", hres);
-
hres = CreateItemMoniker(one, five, &dummy);
ok(hres == S_OK, "CreateItemMoniker() failed: 0x%08x\n", hres);
@@ -198,6 +194,7 @@ static void test_GetObject(void)
ok(hres == MK_E_UNAVAILABLE, "expected MK_E_UNAVAILABLE, got 0x%08x\n", hres);
IHlinkBrowseContext_Release(bc);
+ IMoniker_Release(dummy);
}
START_TEST(browse_ctx)
More information about the wine-cvs
mailing list