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

This commit is contained in:
Nikolay Sivov 2015-06-21 00:27:51 +03:00 committed by Alexandre Julliard
parent 84c2fda63d
commit a7e2b99145
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

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