summaryrefslogtreecommitdiff
path: root/src/lib/eet
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman.samsung@gmail.com>2018-11-13 13:25:04 -0600
committerDerek Foreman <derek.foreman.samsung@gmail.com>2018-11-16 12:16:07 -0600
commitcd44bdeac66d0be8a67003eb6b6bfe699eee33d0 (patch)
treeada5023979850038ce7004d2fc83b8dde6b562d7 /src/lib/eet
parent65de934dcfcbfbaf80b38155ef5b217fa72780cb (diff)
eet: Don't add duplicate lists to eet freelist
The eet freelist code de-duplicates pointers, so passing duplicates is just fine, however it does waste time doing the de-dup. We know when we have a duplicate anyway, so save the time. Differential Revision: https://phab.enlightenment.org/D7278 Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com>
Diffstat (limited to 'src/lib/eet')
-rw-r--r--src/lib/eet/eet_data.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eet/eet_data.c b/src/lib/eet/eet_data.c
index 05d1a8775f..4333559253 100644
--- a/src/lib/eet/eet_data.c
+++ b/src/lib/eet/eet_data.c
@@ -3843,9 +3843,12 @@ eet_data_get_list(Eet_Free_Context *context,
3843 3843
3844 if (edd) 3844 if (edd)
3845 { 3845 {
3846 void *oldlist = list;
3847
3846 list = edd->func.list_append(list, data_ret); 3848 list = edd->func.list_append(list, data_ret);
3847 *ptr = list; 3849 *ptr = list;
3848 _eet_freelist_list_add(context, ptr); 3850 if (oldlist != list)
3851 _eet_freelist_list_add(context, ptr);
3849 } 3852 }
3850 else 3853 else
3851 eet_node_list_append(*((Eet_Node **)data), echnk->name, data_ret); 3854 eet_node_list_append(*((Eet_Node **)data), echnk->name, data_ret);