wined3d: Release the allocator lock on error in wined3d_allocator_chunk_vk_map().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-12-17 17:42:17 +01:00 committed by Alexandre Julliard
parent 9145b551b2
commit 44cb2ba942
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ void *wined3d_allocator_chunk_vk_map(struct wined3d_allocator_chunk_vk *chunk_vk
chunk_vk->vk_memory, 0, VK_WHOLE_SIZE, 0, &chunk_vk->c.map_ptr))) < 0)
{
ERR("Failed to map chunk memory, vr %s.\n", wined3d_debug_vkresult(vr));
wined3d_allocator_chunk_vk_unlock(chunk_vk);
return NULL;
}