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)
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 8c074a4..b7373c7 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)
131 free(item); 131 free(item);
132 } 132 }
133 133
134 eina_array_flush(it->stack); 134 eina_array_clean(it->stack);
135 135
136 eina_spinlock_take(&iterator_trash_lock); 136 eina_spinlock_take(&iterator_trash_lock);
137 eina_array_push(&iterator_trash, it); 137 eina_array_push(&iterator_trash, it);