[PATCH weston] xwm: remove the create surface listener in weston_wm_destroy

Derek Foreman derekf at osg.samsung.com
Tue Feb 3 09:05:10 PST 2015


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 <derekf at osg.samsung.com>
---
 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



More information about the wayland-devel mailing list