mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d: Avoid potential double free.
This commit is contained in:
parent
6a8b99527a
commit
cdc5cd499f
@ -705,6 +705,7 @@ static HRESULT d3d12_root_signature_init(struct d3d12_root_signature *root_signa
|
|||||||
set_desc.pBindings = binding_desc;
|
set_desc.pBindings = binding_desc;
|
||||||
vr = VK_CALL(vkCreateDescriptorSetLayout(device->vk_device, &set_desc, NULL, &root_signature->vk_set_layout));
|
vr = VK_CALL(vkCreateDescriptorSetLayout(device->vk_device, &set_desc, NULL, &root_signature->vk_set_layout));
|
||||||
vkd3d_free(binding_desc);
|
vkd3d_free(binding_desc);
|
||||||
|
binding_desc = NULL;
|
||||||
if (vr < 0)
|
if (vr < 0)
|
||||||
{
|
{
|
||||||
WARN("Failed to create Vulkan descriptor set layout, vr %d.\n", vr);
|
WARN("Failed to create Vulkan descriptor set layout, vr %d.\n", vr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user