Commit 68368a17 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

qedit/samplegrabber: Use strmbase_filter_cleanup().

parent 1e0d9935
...@@ -319,13 +319,14 @@ static ULONG WINAPI SampleGrabber_AddRef(IUnknown *iface) ...@@ -319,13 +319,14 @@ static ULONG WINAPI SampleGrabber_AddRef(IUnknown *iface)
static ULONG WINAPI SampleGrabber_Release(IUnknown *iface) static ULONG WINAPI SampleGrabber_Release(IUnknown *iface)
{ {
SG_Impl *This = impl_from_IUnknown(iface); SG_Impl *This = impl_from_IUnknown(iface);
ULONG ref = BaseFilterImpl_Release(&This->filter.IBaseFilter_iface); ULONG ref = InterlockedDecrement(&This->filter.refCount);
TRACE("(%p) ref=%d\n", This, ref); TRACE("(%p) ref=%d\n", This, ref);
if (ref == 0) if (ref == 0)
{ {
SampleGrabber_cleanup(This); SampleGrabber_cleanup(This);
strmbase_filter_cleanup(&This->filter);
CoTaskMemFree(This); CoTaskMemFree(This);
} }
return ref; return ref;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment