From f10e06c77aee1c27e5f11f02e5ae6e1ae7fd36a5 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 3 Feb 2015 11:05:10 -0600 Subject: [PATCH] xwm: remove the create surface listener in weston_wm_destroy 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 Reviewed-By: Giulio Camuffo --- xwayland/window-manager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index 07c2ef30b..ec3dab903 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); }