Commit 5512ecea authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfplay: Fix a leak on error path in synchronous CreateMediaItemFromURL() (Coverity).

parent e2f74ce4
......@@ -835,7 +835,12 @@ static HRESULT media_player_create_item_from_url(struct media_player *player,
}
if (SUCCEEDED(hr))
{
*ret = &item->IMFPMediaItem_iface;
IMFPMediaItem_AddRef(*ret);
}
IMFPMediaItem_Release(&item->IMFPMediaItem_iface);
return 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