From b224b6372c5f247080c31948ec52d0a059043ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Wed, 5 Oct 2016 18:40:25 +0200 Subject: [PATCH] libs/vkd3d: Fix ID3D12Device reference count leak in d3d12_command_list_init(). --- libs/vkd3d/command.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index a14ee8a7..1baddb83 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -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;