mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d: Avoid potential double free.
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user