Move wl_list_remove(view::link) to the top of the bunch

This commit is contained in:
buffet 2019-12-24 16:09:22 +00:00
parent abda3d3a0e
commit 81497b76c5

View file

@ -34,12 +34,11 @@ xdg_surface_destroy_notify(struct wl_listener *listener, void *UNUSED(data))
{ {
struct kiwmi_view *view = wl_container_of(listener, view, destroy); struct kiwmi_view *view = wl_container_of(listener, view, destroy);
wl_list_remove(&view->link);
wl_list_remove(&view->map.link); wl_list_remove(&view->map.link);
wl_list_remove(&view->unmap.link); wl_list_remove(&view->unmap.link);
wl_list_remove(&view->destroy.link); wl_list_remove(&view->destroy.link);
wl_list_remove(&view->link);
free(view); free(view);
} }