amstream: Release pins and streams array on instance release (Valgrind).
This commit is contained in:
parent
84c2fda63d
commit
a7e2b99145
|
@ -114,6 +114,7 @@ static ULONG WINAPI IAMMultiMediaStreamImpl_Release(IAMMultiMediaStream* iface)
|
|||
{
|
||||
for(i = 0; i < This->nbStreams; i++)
|
||||
IAMMediaStream_Release(This->pStreams[i]);
|
||||
CoTaskMemFree(This->pStreams);
|
||||
if (This->ipin)
|
||||
IPin_Release(This->ipin);
|
||||
if (This->media_stream_filter)
|
||||
|
|
|
@ -249,6 +249,8 @@ static ULONG WINAPI MediaStreamFilterImpl_Release(IMediaStreamFilter *iface)
|
|||
IMediaStream_Release(This->streams[i]);
|
||||
IPin_Release(This->pins[i]);
|
||||
}
|
||||
CoTaskMemFree(This->streams);
|
||||
CoTaskMemFree(This->pins);
|
||||
BaseFilter_Destroy(&This->filter);
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue