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:
Marius Vlad 2021-08-02 15:47:16 +03:00
parent ce2fa93a6e
commit c30cb29248
1 changed files with 2 additions and 2 deletions

View File

@ -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);