[PATCH] qcap/tests: Fix a COM reference leak in the audiorecord test.
Zebediah Figura
z.figura12 at gmail.com
Mon Apr 22 12:49:53 CDT 2019
From: Damjan Jovanovic <damjan.jov at gmail.com>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/qcap/tests/audiorecord.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/qcap/tests/audiorecord.c b/dlls/qcap/tests/audiorecord.c
index 5de019896c..af27017504 100644
--- a/dlls/qcap/tests/audiorecord.c
+++ b/dlls/qcap/tests/audiorecord.c
@@ -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);
}
--
2.21.0
More information about the wine-devel
mailing list