From d90083155655c4dca1ddeac282002540425f82be Mon Sep 17 00:00:00 2001 From: Iason Paraskevopoulos Date: Fri, 28 Nov 2025 16:41:05 +0000 Subject: [PATCH] Fix queue destroy warning on the Wayland backend Fixes an issue where the wl_queue used for the buffer events was destroyed before destroying the wl_buffer objects. Signed-off-by: Iason Paraskevopoulos Change-Id: Ibe25f1f1f2100dda734c5f5788209ddf89c6d47d --- wsi/wayland/swapchain.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wsi/wayland/swapchain.cpp b/wsi/wayland/swapchain.cpp index a990f64..c27acb2 100644 --- a/wsi/wayland/swapchain.cpp +++ b/wsi/wayland/swapchain.cpp @@ -97,6 +97,11 @@ swapchain::~swapchain() if (m_buffer_queue != nullptr) { + for (auto &img : m_swapchain_images) + { + img.set_data(util::unique_ptr()); + } + wl_display_roundtrip_queue(m_display, m_buffer_queue); wl_event_queue_destroy(m_buffer_queue); }