summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2019-12-11 10:13:39 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-12-11 09:59:59 -0800
commit0902bb4e013d3aed7432747357e6c3b97e40ab15 (patch)
tree92b87f47a6f83833841f2c02f88e0ec8604e3aa1
parent9060032a882f7032476ddc159ae4146ddad7e923 (diff)
downloadefl-0902bb4e013d3aed7432747357e6c3b97e40ab15.tar.gz
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
-rw-r--r--src/lib/eina/eina_rbtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_rbtree.c b/src/lib/eina/eina_rbtree.c
index 8c074a42eb..b7373c7fbe 100644
--- a/src/lib/eina/eina_rbtree.c
+++ b/src/lib/eina/eina_rbtree.c
@@ -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);