mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
Merge pull request #121 from martinetd/wlr_seat_destroy
wlr_seat: fix destroy with multiple handles
This commit is contained in:
commit
a138657598
1 changed files with 2 additions and 2 deletions
|
|
@ -180,8 +180,8 @@ void wlr_seat_destroy(struct wlr_seat *wlr_seat) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlr_seat_handle *handle;
|
struct wlr_seat_handle *handle, *tmp;
|
||||||
wl_list_for_each(handle, &wlr_seat->handles, link) {
|
wl_list_for_each_safe(handle, tmp, &wlr_seat->handles, link) {
|
||||||
wl_resource_destroy(handle->wl_resource); // will destroy other resources as well
|
wl_resource_destroy(handle->wl_resource); // will destroy other resources as well
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue