wined3d: Fix memory leak on error path in wined3d_buffer_vk_create_buffer_object (Coverity).

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2021-12-28 21:02:03 -07:00 committed by Alexandre Julliard
parent 00a11ff73d
commit 29c9cf6429
1 changed files with 1 additions and 0 deletions

View File

@ -1498,6 +1498,7 @@ static BOOL wined3d_buffer_vk_create_buffer_object(struct wined3d_buffer_vk *buf
vk_memory_type_from_access_flags(resource->access, resource->usage), bo_vk)))
{
WARN("Failed to create Vulkan buffer.\n");
heap_free(bo_vk);
return FALSE;
}