mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
libs/vkd3d: Fix memory leak in d3d12_device_create().
This commit is contained in:
parent
8801f82626
commit
a524488c78
@ -1048,7 +1048,10 @@ HRESULT d3d12_device_create(struct d3d12_device **device)
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
if (FAILED(hr = d3d12_device_init(object)))
|
||||
{
|
||||
vkd3d_free(object);
|
||||
return hr;
|
||||
}
|
||||
|
||||
TRACE("Created device %p.\n", object);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user