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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user