mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 11:04:10 +00:00
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:
parent
54dee9a934
commit
9d75caf4e1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue