xwm: use correct list link when iterating over `unpaired_surfaces`

master
Tudor Brindus 4 years ago committed by Simon Ser
parent abf527b075
commit 699d724000

@ -1633,7 +1633,7 @@ void xwm_destroy(struct wlr_xwm *xwm) {
wl_list_for_each_safe(xsurface, tmp, &xwm->surfaces, link) {
xwayland_surface_destroy(xsurface);
}
wl_list_for_each_safe(xsurface, tmp, &xwm->unpaired_surfaces, link) {
wl_list_for_each_safe(xsurface, tmp, &xwm->unpaired_surfaces, unpaired_link) {
xwayland_surface_destroy(xsurface);
}
wl_list_remove(&xwm->compositor_new_surface.link);

Loading…
Cancel
Save