mfplat: Fix memory allocation in mfsourceresolver_CreateObjectFromByteStream() (Coverity).
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
837b4aa429
commit
7176f9b2d2
|
@ -1907,7 +1907,7 @@ static HRESULT WINAPI mfsourceresolver_CreateObjectFromByteStream(IMFSourceResol
|
|||
{
|
||||
mfsource *new_object;
|
||||
|
||||
new_object = HeapAlloc( GetProcessHeap(), 0, sizeof(*object) );
|
||||
new_object = HeapAlloc( GetProcessHeap(), 0, sizeof(*new_object) );
|
||||
if (!new_object)
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
|
|
Loading…
Reference in New Issue