Commit 3e015761 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

evr: Use strmbase_filter_cleanup().

parent 347fdce0
......@@ -117,12 +117,15 @@ static ULONG WINAPI inner_AddRef(IUnknown *iface)
static ULONG WINAPI inner_Release(IUnknown *iface)
{
evr_filter *This = impl_from_inner_IUnknown(iface);
ULONG ref = BaseFilterImpl_Release(&This->filter.IBaseFilter_iface);
ULONG ref = InterlockedDecrement(&This->filter.refCount);
TRACE("(%p, %p)->(): new ref %d\n", iface, This, ref);
if (!ref)
{
strmbase_filter_cleanup(&This->filter);
CoTaskMemFree(This);
}
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