mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 11:58:03 +02:00
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 <vlad.zahorodnii@kde.org>
This commit is contained in:
parent
4e1e922a28
commit
09c8902225
1 changed files with 1 additions and 1 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue