devenum/tests: Fix some memory leaks (Valgrind).
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f760079a71
commit
532c986ac5
|
@ -129,6 +129,7 @@ static void test_devenum(IBindCtx *bind_ctx)
|
|||
hr = IMoniker_BindToObject(moniker, bind_ctx, NULL, &IID_IUnknown, NULL);
|
||||
ok(hr == E_POINTER, "got %#x\n", hr);
|
||||
|
||||
VariantClear(&var);
|
||||
CoTaskMemFree(displayname);
|
||||
IPropertyBag_Release(prop_bag);
|
||||
IMoniker_Release(moniker);
|
||||
|
@ -137,6 +138,7 @@ static void test_devenum(IBindCtx *bind_ctx)
|
|||
}
|
||||
}
|
||||
|
||||
IEnumMoniker_Release(enum_cat);
|
||||
ICreateDevEnum_Release(create_devenum);
|
||||
}
|
||||
|
||||
|
@ -466,6 +468,7 @@ static void test_codec(void)
|
|||
* enumerating them will destroy the key */
|
||||
ok(!find_moniker(&CLSID_AudioRendererCategory, mon), "codec should not be registered\n");
|
||||
|
||||
VariantClear(&var);
|
||||
hr = IPropertyBag_Read(prop_bag, friendly_name, &var, NULL);
|
||||
ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "got %#x\n", hr);
|
||||
|
||||
|
@ -589,6 +592,7 @@ static void test_legacy_filter(void)
|
|||
ok(!lstrcmpW(buffer, V_BSTR(&var)), "expected %s, got %s\n",
|
||||
wine_dbgstr_w(buffer), wine_dbgstr_w(V_BSTR(&var)));
|
||||
|
||||
VariantClear(&var);
|
||||
IPropertyBag_Release(prop_bag);
|
||||
|
||||
hr = IFilterMapper_UnregisterFilter(mapper, CLSID_TestFilter);
|
||||
|
@ -999,6 +1003,7 @@ static void test_vfw(void)
|
|||
ok(!lstrcmpW(name, V_BSTR(&var)), "expected %s, got %s\n",
|
||||
wine_dbgstr_w(name), wine_dbgstr_w(V_BSTR(&var)));
|
||||
|
||||
VariantClear(&var);
|
||||
IPropertyBag_Release(prop_bag);
|
||||
IMoniker_Release(mon);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue