libs/vkd3d: Fix memory leak in d3d12_device_create().

This commit is contained in:
Józef Kucia 2016-09-26 11:46:45 +02:00
parent 8801f82626
commit a524488c78

View File

@ -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);