summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2018-11-27 13:34:37 +0000
committerEric Engestrom <eric.engestrom@intel.com>2018-11-28 12:09:54 +0000
commit9575cd289325ddbfa96291d7886cfc32a0487e79 (patch)
treef530d02c77aeab9cd776356c4db65276d99675b3 /src
parentf08d10705482907e94c9a3768013f6072db6f0c9 (diff)
wsi/display: fix mem leak when freeing swapchains
Fixes: da997ebec92942193955 "vulkan: Add KHR_display extension using DRM [v10]" Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/wsi/wsi_common_display.c2
1 files changed, 2 insertions, 0 deletions
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;
}