mfplay: Fix a leak on error path in synchronous CreateMediaItemFromURL() (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e2f74ce448
commit
5512eceada
|
@ -835,7 +835,12 @@ static HRESULT media_player_create_item_from_url(struct media_player *player,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
|
{
|
||||||
*ret = &item->IMFPMediaItem_iface;
|
*ret = &item->IMFPMediaItem_iface;
|
||||||
|
IMFPMediaItem_AddRef(*ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
IMFPMediaItem_Release(&item->IMFPMediaItem_iface);
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue