From 9b23e02b4e8b17a36009852d34fa8f762990831d Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sun, 20 Oct 2019 20:05:02 +0200 Subject: win: clean up tabs list asap --- src/bin/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bin/win.c b/src/bin/win.c index e9fbec0..05fdd34 100644 --- a/src/bin/win.c +++ b/src/bin/win.c @@ -3324,6 +3324,7 @@ _tabs_close(Term_Container *tc, Term_Container *child) l = _tab_item_find(tabs, child); item = l->data; + tabs->tabs = eina_list_remove_list(tabs->tabs, l); next = eina_list_next(l); if (!next) @@ -3331,7 +3332,6 @@ _tabs_close(Term_Container *tc, Term_Container *child) next_item = next->data; next_child = next_item->tc; assert (next_child->type == TERM_CONTAINER_TYPE_SOLO); - tabs->tabs = eina_list_remove_list(tabs->tabs, l); assert (child->type == TERM_CONTAINER_TYPE_SOLO); solo = (Solo*)child; -- cgit v1.1