evr: Use strmbase_filter_cleanup().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-05-22 00:02:14 -05:00 committed by Alexandre Julliard
parent 347fdce0ad
commit 3e0157613f
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}