Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
---
dlls/devenum/tests/devenum.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/devenum/tests/devenum.c b/dlls/devenum/tests/devenum.c
index 2a88b48ab8..10ca27a614 100644
--- a/dlls/devenum/tests/devenum.c
+++ b/dlls/devenum/tests/devenum.c
@@ -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);
}
--
2.19.2