Commit aec014fe authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

winegstreamer: Fix double free on error path in media_source_constructor (scan-build).

parent 654b970b
......@@ -1591,7 +1591,6 @@ static HRESULT media_source_create(IMFByteStream *bytestream, IMFMediaSource **o
if (!(object->descriptors = calloc(stream_count, sizeof(*object->descriptors)))
|| !(object->streams = calloc(stream_count, sizeof(*object->streams))))
{
free(object->descriptors);
hr = E_OUTOFMEMORY;
goto fail;
}
......
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