winegstreamer: Fully initialize MF object creation context.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8dac512e8c
commit
e162e7ea7f
|
@ -1379,7 +1379,7 @@ static HRESULT WINAPI winegstreamer_stream_handler_BeginCreateObject(IMFByteStre
|
||||||
if (FAILED(hr = MFCreateAsyncResult(NULL, callback, state, &caller)))
|
if (FAILED(hr = MFCreateAsyncResult(NULL, callback, state, &caller)))
|
||||||
return hr;
|
return hr;
|
||||||
|
|
||||||
context = heap_alloc(sizeof(*context));
|
context = heap_alloc_zero(sizeof(*context));
|
||||||
if (!context)
|
if (!context)
|
||||||
{
|
{
|
||||||
IMFAsyncResult_Release(caller);
|
IMFAsyncResult_Release(caller);
|
||||||
|
|
Loading…
Reference in New Issue