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>
dev
Marius Vlad 3 years ago
parent ce2fa93a6e
commit c30cb29248
  1. 4
      desktop-shell/shell.c

@ -2474,11 +2474,11 @@ desktop_surface_removed(struct weston_desktop_surface *desktop_surface,
fade_out_done, shsurf); fade_out_done, shsurf);
return; return;
} else { } else {
--surface->ref_count; weston_surface_destroy(surface);
} }
} }
weston_surface_destroy(surface); weston_view_destroy(shsurf->view);
if (shsurf->output_destroy_listener.notify) { if (shsurf->output_destroy_listener.notify) {
wl_list_remove(&shsurf->output_destroy_listener.link); wl_list_remove(&shsurf->output_destroy_listener.link);

Loading…
Cancel
Save