mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Destroy callbacks before callback list reinitialization
This commit is contained in:
parent
c39bfe7f84
commit
d3af2c09c2
1 changed files with 4 additions and 0 deletions
|
@ -158,6 +158,10 @@ static void wlr_surface_update_size(struct wlr_surface *surface, struct wlr_surf
|
||||||
_height = tmp;
|
_height = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct wlr_frame_callback *cb, *tmp;
|
||||||
|
wl_list_for_each_safe(cb, tmp, &state->frame_callback_list, link) {
|
||||||
|
wl_resource_destroy(cb->resource);
|
||||||
|
}
|
||||||
wl_list_init(&state->frame_callback_list);
|
wl_list_init(&state->frame_callback_list);
|
||||||
|
|
||||||
state->width = _width;
|
state->width = _width;
|
||||||
|
|
Loading…
Reference in a new issue