Commit a7e2b991 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

amstream: Release pins and streams array on instance release (Valgrind).

parent 84c2fda6
......@@ -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);
}
......
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