Damjan Jovanovic : qcap/tests: Fix a COM reference leak in the audiorecord test.
Alexandre Julliard
julliard at winehq.org
Mon Apr 22 16:30:40 CDT 2019
Module: wine
Branch: master
Commit: 9d75caf4e1deea0ec8d5ad3f829e7218bc1e3c16
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9d75caf4e1deea0ec8d5ad3f829e7218bc1e3c16
Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date: Mon Apr 22 12:49:53 2019 -0500
qcap/tests: Fix a COM reference leak in the audiorecord test.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 5de0198..af27017 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);
}
More information about the wine-cvs
mailing list