diff --git a/sway/desktop/tearing.c b/sway/desktop/tearing.c index 28d83f047..7838d250f 100644 --- a/sway/desktop/tearing.c +++ b/sway/desktop/tearing.c @@ -26,8 +26,8 @@ static void handle_tearing_controller_set_hint(struct wl_listener *listener, static void handle_tearing_controller_destroy(struct wl_listener *listener, void *data) { struct sway_tearing_controller *controller = - wl_container_of(listener, controller, destroy); - wl_list_remove(&controller->link); + wl_container_of(listener, controller, destroy); + wl_list_remove(&controller->link); free(controller); }