amstream: Destroy BaseFilter after MediaStreamFilterImpl child class.
This commit is contained in:
parent
58ba839be3
commit
cc45c1373c
|
@ -238,7 +238,7 @@ static ULONG WINAPI MediaStreamFilterImpl_AddRef(IMediaStreamFilter *iface)
|
||||||
static ULONG WINAPI MediaStreamFilterImpl_Release(IMediaStreamFilter *iface)
|
static ULONG WINAPI MediaStreamFilterImpl_Release(IMediaStreamFilter *iface)
|
||||||
{
|
{
|
||||||
IMediaStreamFilterImpl *This = impl_from_IMediaStreamFilter(iface);
|
IMediaStreamFilterImpl *This = impl_from_IMediaStreamFilter(iface);
|
||||||
ULONG ref = BaseFilterImpl_Release(&This->filter.IBaseFilter_iface);
|
ULONG ref = InterlockedDecrement(&This->filter.refCount);
|
||||||
|
|
||||||
TRACE("(%p)->(): new ref = %u\n", iface, ref);
|
TRACE("(%p)->(): new ref = %u\n", iface, ref);
|
||||||
|
|
||||||
|
@ -250,6 +250,7 @@ static ULONG WINAPI MediaStreamFilterImpl_Release(IMediaStreamFilter *iface)
|
||||||
IMediaStream_Release(This->streams[i]);
|
IMediaStream_Release(This->streams[i]);
|
||||||
IPin_Release(This->pins[i]);
|
IPin_Release(This->pins[i]);
|
||||||
}
|
}
|
||||||
|
BaseFilter_Destroy(&This->filter);
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue