eina_rbtree: Clean array intead of flush.

It doesn't have to flush all of the time when it iterating.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D10858
This commit is contained in:
Woochanlee 2019-12-11 10:13:39 +00:00 committed by Cedric BAIL
parent 9060032a88
commit 0902bb4e01
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ _eina_rbtree_iterator_free(Eina_Iterator_Rbtree *it)
free(item);
}
eina_array_flush(it->stack);
eina_array_clean(it->stack);
eina_spinlock_take(&iterator_trash_lock);
eina_array_push(&iterator_trash, it);