amstream: Reference the returned IMediaStream pointer in IAMMultiMediaStream::AddMediaStream().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-04-21 15:22:40 -05:00 committed by Alexandre Julliard
parent a16a190f63
commit eec4a05e76
1 changed files with 3 additions and 1 deletions

View File

@ -380,7 +380,9 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_AddMediaStream(IAMMultiMediaStream
This->nbStreams++;
if (ppNewStream)
*ppNewStream = (IMediaStream*)pStream;
{
IMediaStream_AddRef(*ppNewStream = (IMediaStream*)pStream);
}
}
if (SUCCEEDED(hr))