xwayland: Remove transform listener when destroying the wm
authorLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>
Sat, 20 Jul 2013 04:16:45 +0000 (05:16 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 29 Jul 2013 22:47:19 +0000 (15:47 -0700)
Fix a segfault occuring after the last X window was closed.

src/xwayland/window-manager.c

index 74fba47..257c108 100644 (file)
@@ -1801,6 +1801,7 @@ weston_wm_destroy(struct weston_wm *wm)
        wl_list_remove(&wm->selection_listener.link);
        wl_list_remove(&wm->activate_listener.link);
        wl_list_remove(&wm->kill_listener.link);
+       wl_list_remove(&wm->transform_listener.link);
 
        free(wm);
 }