From 1d1cd7cc1a34387d935a466ff55d2cf5652c5fba Mon Sep 17 00:00:00 2001 From: Dery Almas Date: Fri, 12 Dec 2025 13:43:13 +0100 Subject: [PATCH] Wayland: Add missing destroy calls for text input and tablet Thank you Kiisu_Master for finding this! --- platform/linuxbsd/wayland/wayland_thread.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp index 70536d53ae6..fa616d070d2 100644 --- a/platform/linuxbsd/wayland/wayland_thread.cpp +++ b/platform/linuxbsd/wayland/wayland_thread.cpp @@ -5375,9 +5375,19 @@ void WaylandThread::destroy() { zwp_tablet_tool_v2_destroy(tool); } + zwp_text_input_v3_destroy(ss->wp_text_input); + memdelete(ss); } + if (registry.wp_tablet_manager) { + zwp_tablet_manager_v2_destroy(registry.wp_tablet_manager); + } + + if (registry.wp_text_input_manager) { + zwp_text_input_manager_v3_destroy(registry.wp_text_input_manager); + } + for (struct wl_output *wl_output : registry.wl_outputs) { ERR_FAIL_NULL(wl_output);