Commit cc45c137 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

amstream: Destroy BaseFilter after MediaStreamFilterImpl child class.

parent 58ba839b
...@@ -238,7 +238,7 @@ static ULONG WINAPI MediaStreamFilterImpl_AddRef(IMediaStreamFilter *iface) ...@@ -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) ...@@ -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);
} }
......
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