hlink/tests: Fix some memory leaks (Valgrind).
Signed-off-by: Sven Baars <sven.wine@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b012281cc9
commit
aab7fcd393
|
@ -165,16 +165,12 @@ static void test_GetObject(void)
|
||||||
{
|
{
|
||||||
IHlinkBrowseContext *bc;
|
IHlinkBrowseContext *bc;
|
||||||
IMoniker *dummy;
|
IMoniker *dummy;
|
||||||
IBindCtx *bindctx;
|
|
||||||
IUnknown *unk;
|
IUnknown *unk;
|
||||||
WCHAR one[] = {'1',0};
|
WCHAR one[] = {'1',0};
|
||||||
WCHAR five[] = {'5',0};
|
WCHAR five[] = {'5',0};
|
||||||
DWORD cookie;
|
DWORD cookie;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
hres = CreateBindCtx(0, &bindctx);
|
|
||||||
ok(hres == S_OK, "CreateBindCtx() failed: 0x%08x\n", hres);
|
|
||||||
|
|
||||||
hres = CreateItemMoniker(one, five, &dummy);
|
hres = CreateItemMoniker(one, five, &dummy);
|
||||||
ok(hres == S_OK, "CreateItemMoniker() failed: 0x%08x\n", hres);
|
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);
|
ok(hres == MK_E_UNAVAILABLE, "expected MK_E_UNAVAILABLE, got 0x%08x\n", hres);
|
||||||
|
|
||||||
IHlinkBrowseContext_Release(bc);
|
IHlinkBrowseContext_Release(bc);
|
||||||
|
IMoniker_Release(dummy);
|
||||||
}
|
}
|
||||||
|
|
||||||
START_TEST(browse_ctx)
|
START_TEST(browse_ctx)
|
||||||
|
|
Loading…
Reference in New Issue