From 5c5296c912394ff6bd1ad33a2d78ae2bd142248e Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 19 Oct 2018 23:03:58 +1000 Subject: [PATCH] xwm: Remove child->parent pointer when parent destroys --- xwayland/xwm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xwayland/xwm.c b/xwayland/xwm.c index 474b53d0..8c1777b7 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -313,6 +313,7 @@ static void xwayland_surface_destroy( wl_list_for_each_safe(child, next, &xsurface->children, parent_link) { wl_list_remove(&child->parent_link); wl_list_init(&child->parent_link); + child->parent = NULL; } if (xsurface->surface_id) {