Commit 87e1df02 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz/tests: Fix a leak in test_fm2_enummatchingfilters().

parent e1c57c27
......@@ -119,7 +119,7 @@ static void test_fm2_enummatchingfilters(void)
IEnumMoniker *pEnum = NULL;
BOOL found, registered = TRUE;
REGFILTER *regfilter;
ULONG count;
ULONG count, ref;
ZeroMemory(&rgf2, sizeof(rgf2));
......@@ -227,6 +227,8 @@ static void test_fm2_enummatchingfilters(void)
}
IEnumRegFilters_Release(enum_reg);
ok(found, "IFilterMapper didn't find filter\n");
IFilterMapper_Release(mapper);
}
if (pEnum) IEnumMoniker_Release(pEnum);
......@@ -256,7 +258,8 @@ static void test_fm2_enummatchingfilters(void)
out:
if (pEnum) IEnumMoniker_Release(pEnum);
if (pMapper) IFilterMapper2_Release(pMapper);
ref = IFilterMapper2_Release(pMapper);
ok(!ref, "Got outstanding refcount %d.\n", ref);
}
static void test_legacy_filter_registration(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment