summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-05-06 16:18:51 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-05-06 16:18:51 -0700
commitc9152d38162866b203236296ef1a67270ec1d23d (patch)
tree32ef91222a20e358cb18c9d1e85c80bb586a3acc /src
parent359657f1f1fdaf4daa1af3addd0e8714d76b6099 (diff)
edje: reduce memory usage by 57Kb.
If we do a copy of a string living in the object we are storing in the same eina_hash, it is obviously better to use the direct pointer version.
Diffstat (limited to 'src')
-rw-r--r--src/lib/edje/edje_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c
index d81408a914..4ecb521adc 100644
--- a/src/lib/edje/edje_util.c
+++ b/src/lib/edje/edje_util.c
@@ -180,7 +180,7 @@ _edje_class_member_add(Edje *ed, Eina_Hash **ghash, const char *class)
180 er->ed = ed; 180 er->ed = ed;
181 EINA_REFCOUNT_INIT(er); 181 EINA_REFCOUNT_INIT(er);
182 182
183 eina_hash_add(members, &er->ed, er); 183 eina_hash_direct_add(members, &er->ed, er);
184 } 184 }
185 else 185 else
186 { 186 {