From 699d7240001c4d991a265c23d9c020a36df5f70d Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Wed, 19 May 2021 20:33:45 -0400 Subject: [PATCH] xwm: use correct list link when iterating over `unpaired_surfaces` --- xwayland/xwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwayland/xwm.c b/xwayland/xwm.c index 7e463866..fb5879e3 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -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);