summaryrefslogtreecommitdiff
path: root/src/bin/edje
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2014-10-20 01:26:35 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-10-20 01:28:12 +0200
commit9d69033411280a85602b4386238159a9cfa7b8a6 (patch)
tree20a6db626d1e7e5a7fdcbca2c2ffafc78c5d8c1d /src/bin/edje
parentdedd8cef64be99e59d7b0ca23f2651d06bdf3c7e (diff)
edje: actually reuse the right Part_Lookup and not a destroyed one.
Diffstat (limited to 'src/bin/edje')
-rwxr-xr-xsrc/bin/edje/edje_cc_out.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 90d3dca271..83a341b2a6 100755
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -2272,6 +2272,7 @@ part_lookup_delete(Edje_Part_Collection *pc, const char *name, int *dest, char *
2272{ 2272{
2273 Part_Lookup_Key key; 2273 Part_Lookup_Key key;
2274 Part_Lookup *pl = NULL; 2274 Part_Lookup *pl = NULL;
2275 Part_Lookup *lpl;
2275 Eina_List *list, *l, *ll; 2276 Eina_List *list, *l, *ll;
2276 key.pc = pc; 2277 key.pc = pc;
2277 key.mem.dest = dest; 2278 key.mem.dest = dest;
@@ -2280,12 +2281,12 @@ part_lookup_delete(Edje_Part_Collection *pc, const char *name, int *dest, char *
2280 pl = eina_hash_find(part_pc_dest_lookup, &key); 2281 pl = eina_hash_find(part_pc_dest_lookup, &key);
2281 if (!pl) return; 2282 if (!pl) return;
2282 list = eina_hash_find(part_dest_lookup, &pl->key); 2283 list = eina_hash_find(part_dest_lookup, &pl->key);
2283 EINA_LIST_FOREACH_SAFE(list, l, ll, pl) 2284 EINA_LIST_FOREACH_SAFE(list, l, ll, lpl)
2284 { 2285 {
2285 if (strcmp(pl->name, name) || (pl->key.dest2 != dest2)) continue; 2286 if (strcmp(lpl->name, name) || (lpl->key.dest2 != dest2)) continue;
2286 free(pl->name); 2287 free(lpl->name);
2287 list = eina_list_remove_list(list, l); 2288 list = eina_list_remove_list(list, l);
2288 free(pl); 2289 free(lpl);
2289 } 2290 }
2290 eina_hash_set(part_dest_lookup, &pl->key, list); 2291 eina_hash_set(part_dest_lookup, &pl->key, list);
2291} 2292}