mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08: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;
|
list->pipeline_state = initial_pipeline_state;
|
||||||
|
|
||||||
if (FAILED(hr = vkd3d_command_allocator_allocate_command_list(allocator, list)))
|
if (FAILED(hr = vkd3d_command_allocator_allocate_command_list(allocator, list)))
|
||||||
|
{
|
||||||
|
ID3D12Device_Release(&device->ID3D12Device_iface);
|
||||||
return hr;
|
return hr;
|
||||||
|
}
|
||||||
|
|
||||||
list->passes = NULL;
|
list->passes = NULL;
|
||||||
list->passes_size = 0;
|
list->passes_size = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user