mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08: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