Commit 29c9cf64 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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

parent 00a11ff7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment