Zebediah Figura : qcap/audiorecord: Use strmbase_filter_cleanup().
Alexandre Julliard
julliard at winehq.org
Thu May 23 16:04:38 CDT 2019
Module: wine
Branch: master
Commit: 1e0d9935f82fcd325d7d9ef6d07a2383cc25efbe
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1e0d9935f82fcd325d7d9ef6d07a2383cc25efbe
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Wed May 22 21:44:53 2019 -0500
qcap/audiorecord: Use strmbase_filter_cleanup().
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/qcap/audiorecord.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/qcap/audiorecord.c b/dlls/qcap/audiorecord.c
index 12b62a4..373bc9a 100644
--- a/dlls/qcap/audiorecord.c
+++ b/dlls/qcap/audiorecord.c
@@ -99,9 +99,10 @@ static ULONG WINAPI Unknown_AddRef(IUnknown *iface)
static ULONG WINAPI Unknown_Release(IUnknown *iface)
{
AudioRecord *This = impl_from_IUnknown(iface);
- ULONG ref = BaseFilterImpl_Release(&This->filter.IBaseFilter_iface);
+ ULONG ref = InterlockedDecrement(&This->filter.refCount);
TRACE("(%p/%p)->() ref=%d\n", iface, This, ref);
if (!ref) {
+ strmbase_filter_cleanup(&This->filter);
CoTaskMemFree(This);
}
return ref;
More information about the wine-cvs
mailing list