diff options
author | Eric Engestrom <eric.engestrom@intel.com> | 2018-11-27 13:34:37 +0000 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@intel.com> | 2018-11-28 12:09:54 +0000 |
commit | 9575cd289325ddbfa96291d7886cfc32a0487e79 (patch) | |
tree | f530d02c77aeab9cd776356c4db65276d99675b3 /src | |
parent | f08d10705482907e94c9a3768013f6072db6f0c9 (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.c | 2 |
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; } |