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 <derekf@osg.samsung.com>
Reviewed-By: Giulio Camuffo <giuliocamuffo@gmail.com>
This commit is contained in:
Derek Foreman 2015-02-03 11:05:10 -06:00 committed by Bryce Harrington
parent 82cc25b986
commit f10e06c77a
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}