From fdf4986a38f2b9bab115a2607a57be4958d95efa Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Thu, 20 Feb 2025 09:43:04 -0500 Subject: [PATCH] c/main: destroy all resources in comp_window_wayland Part-of: --- src/xrt/compositor/main/comp_window_wayland.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/xrt/compositor/main/comp_window_wayland.c b/src/xrt/compositor/main/comp_window_wayland.c index f6db5707b..d76820e6b 100644 --- a/src/xrt/compositor/main/comp_window_wayland.c +++ b/src/xrt/compositor/main/comp_window_wayland.c @@ -124,6 +124,15 @@ comp_window_wayland_destroy(struct comp_target *ct) comp_target_swapchain_cleanup(&cww->base); + if (cww->xdg_toplevel) { + xdg_toplevel_destroy(cww->xdg_toplevel); + } + if (cww->xdg_surface) { + xdg_surface_destroy(cww->xdg_surface); + } + if (cww->wm_base) { + xdg_wm_base_destroy(cww->wm_base); + } if (cww->surface) { wl_surface_destroy(cww->surface); cww->surface = NULL; -- 2.51.2