From: Eric Engestrom Date: Tue, 27 Nov 2018 13:34:37 +0000 (+0000) Subject: wsi/display: fix mem leak when freeing swapchains X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9575cd289325ddbfa96291d7886cfc32a0487e79;p=mesa.git wsi/display: fix mem leak when freeing swapchains Fixes: da997ebec92942193955 "vulkan: Add KHR_display extension using DRM [v10]" Signed-off-by: Eric Engestrom Reviewed-by: Keith Packard --- diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c index edfb166fa69..20209b0cbd0 100644 --- a/src/vulkan/wsi/wsi_common_display.c +++ b/src/vulkan/wsi/wsi_common_display.c @@ -1063,6 +1063,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; }