From 09c89022257f706c6202680a82725ae89440f224 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 14 Apr 2025 11:47:24 +0300 Subject: [PATCH] desktop-shell: Fix leaking weston_desktop_surface If the view has become unmapped, the weston_desktop_surface should still be unreferenced, otherwise it'll be leaked until the client disconnects. Signed-off-by: Vlad Zahorodnii --- desktop-shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index fd834a670..abc3479b1 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -1898,8 +1898,8 @@ fade_out_done(struct weston_view_animation *animation, void *data) if (weston_view_is_mapped(shsurf->wview_anim_fade)) { weston_view_move_to_layer(shsurf->wview_anim_fade, NULL); - wl_event_loop_add_idle(loop, fade_out_done_idle_cb, shsurf); } + wl_event_loop_add_idle(loop, fade_out_done_idle_cb, shsurf); } struct shell_surface *