mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
libs/vkd3d: Fix ID3D12Device reference count leak in d3d12_command_list_init().
This commit is contained in:
parent
a763bef615
commit
b224b6372c
@ -1462,7 +1462,10 @@ static HRESULT d3d12_command_list_init(struct d3d12_command_list *list, struct d
|
||||
list->pipeline_state = initial_pipeline_state;
|
||||
|
||||
if (FAILED(hr = vkd3d_command_allocator_allocate_command_list(allocator, list)))
|
||||
{
|
||||
ID3D12Device_Release(&device->ID3D12Device_iface);
|
||||
return hr;
|
||||
}
|
||||
|
||||
list->passes = NULL;
|
||||
list->passes_size = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user