Failing to remove this can result in a crash when the signal is sent
after the window manager is destroyed.

Signed-off-by: Derek Foreman <[email protected]>
---
 xwayland/window-manager.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index 07c2ef3..ec3dab9 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -2229,6 +2229,7 @@ weston_wm_destroy(struct weston_wm *wm)
        wl_list_remove(&wm->activate_listener.link);
        wl_list_remove(&wm->kill_listener.link);
        wl_list_remove(&wm->transform_listener.link);
+       wl_list_remove(&wm->create_surface_listener.link);
 
        free(wm);
 }
-- 
2.1.4

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to