From 6a06c3d9073507168df370f9f58642ce2eae1825 Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 20 Nov 2017 18:05:24 +0100 Subject: Fix segfault when closing xwayland views --- rootston/desktop.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'rootston/desktop.c') diff --git a/rootston/desktop.c b/rootston/desktop.c index cf5a8cdc..65730807 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -181,15 +181,12 @@ bool view_center(struct roots_view *view) { void view_destroy(struct roots_view *view) { wl_signal_emit(&view->events.destroy, view); - wl_list_remove(&view->link); free(view); } void view_init(struct roots_view *view, struct roots_desktop *desktop) { view->desktop = desktop; wl_signal_init(&view->events.destroy); - - wl_list_insert(&desktop->views, &view->link); } void view_setup(struct roots_view *view) { -- cgit v1.2.3