Commit eec4a05e authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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

parent a16a190f
...@@ -380,7 +380,9 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_AddMediaStream(IAMMultiMediaStream ...@@ -380,7 +380,9 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_AddMediaStream(IAMMultiMediaStream
This->nbStreams++; This->nbStreams++;
if (ppNewStream) if (ppNewStream)
*ppNewStream = (IMediaStream*)pStream; {
IMediaStream_AddRef(*ppNewStream = (IMediaStream*)pStream);
}
} }
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
......
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