mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-11 13:29:45 -05:00
Fix segfault during xdg-shell cleanup
This commit is contained in:
parent
6569c2b626
commit
3375381610
1 changed files with 2 additions and 2 deletions
|
|
@ -197,8 +197,8 @@ void xdg_shell_release(struct xdg_shell_state *state) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wl_resource *resource = NULL;
|
struct wl_resource *resource = NULL, *temp = NULL;
|
||||||
wl_resource_for_each(resource, &state->wl_resources) {
|
wl_resource_for_each_safe(resource, temp, &state->wl_resources) {
|
||||||
struct wl_list *link = wl_resource_get_link(resource);
|
struct wl_list *link = wl_resource_get_link(resource);
|
||||||
wl_list_remove(link);
|
wl_list_remove(link);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue