qcap/tests: Fix a COM reference leak in the audiorecord test.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Damjan Jovanovic 2019-04-22 12:49:53 -05:00 committed by Alexandre Julliard
parent 54dee9a934
commit 9d75caf4e1

View file

@ -152,6 +152,7 @@ START_TEST(audiorecord)
IMoniker *mon;
WCHAR *name;
HRESULT hr;
ULONG ref;
CoInitialize(NULL);
@ -182,6 +183,8 @@ START_TEST(audiorecord)
test_interfaces(filter);
ref = IBaseFilter_Release(filter);
ok(!ref, "Got outstanding refcount %d.\n", ref);
IMoniker_Release(mon);
}