Skip to content
Snippets Groups Projects
Commit 41671f5d authored by Eric Engestrom's avatar Eric Engestrom :no_entry: Committed by Emil Velikov
Browse files

wsi/display: fix mem leak when freeing swapchains


Fixes: da997ebe "vulkan: Add KHR_display extension using DRM [v10]"
Signed-off-by: default avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: default avatarKeith Packard <keithp@keithp.com>
(cherry picked from commit 9575cd28)
parent ec659efc
No related branches found
No related tags found
No related merge requests found
......@@ -1062,6 +1062,8 @@ wsi_display_swapchain_destroy(struct wsi_swapchain *drv_chain,
for (uint32_t i = 0; i < chain->base.image_count; i++)
wsi_display_image_finish(drv_chain, allocator, &chain->images[i]);
wsi_swapchain_finish(&chain->base);
vk_free(allocator, chain);
return VK_SUCCESS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment