win: clean up tabs list asap

This commit is contained in:
Boris Faure 2019-10-20 20:05:02 +02:00
parent 9ce403d29b
commit 9b23e02b4e
1 changed files with 1 additions and 1 deletions

View File

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