mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-11-05 18:24:04 +00:00
desktop-shell: Use weston_surface_destroy() directly
Follow-up from commit 'desktop-shell: don't run fade animation if compositor is inactive' where the reference was dropped directly, instead of using weston_surface_destroy(). Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
ce2fa93a6e
commit
c30cb29248
1 changed files with 2 additions and 2 deletions
|
@ -2474,11 +2474,11 @@ desktop_surface_removed(struct weston_desktop_surface *desktop_surface,
|
|||
fade_out_done, shsurf);
|
||||
return;
|
||||
} else {
|
||||
--surface->ref_count;
|
||||
weston_surface_destroy(surface);
|
||||
}
|
||||
}
|
||||
|
||||
weston_surface_destroy(surface);
|
||||
weston_view_destroy(shsurf->view);
|
||||
|
||||
if (shsurf->output_destroy_listener.notify) {
|
||||
wl_list_remove(&shsurf->output_destroy_listener.link);
|
||||
|
|
Loading…
Reference in a new issue