cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9d69033411280a85602b4386238159a9cfa7b8a6

commit 9d69033411280a85602b4386238159a9cfa7b8a6
Author: Cedric BAIL <[email protected]>
Date:   Mon Oct 20 01:26:35 2014 +0200

    edje: actually reuse the right Part_Lookup and not a destroyed one.
---
 src/bin/edje/edje_cc_out.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 90d3dca..83a341b 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 *
 {
    Part_Lookup_Key key;
    Part_Lookup *pl = NULL;
+   Part_Lookup *lpl;
    Eina_List *list, *l, *ll;
    key.pc = pc;
    key.mem.dest = dest;
@@ -2280,12 +2281,12 @@ part_lookup_delete(Edje_Part_Collection *pc, const char 
*name, int *dest, char *
    pl = eina_hash_find(part_pc_dest_lookup, &key);
    if (!pl) return;
    list = eina_hash_find(part_dest_lookup, &pl->key);
-   EINA_LIST_FOREACH_SAFE(list, l, ll, pl)
+   EINA_LIST_FOREACH_SAFE(list, l, ll, lpl)
      {
-        if (strcmp(pl->name, name) || (pl->key.dest2 != dest2)) continue;
-        free(pl->name);
+        if (strcmp(lpl->name, name) || (lpl->key.dest2 != dest2)) continue;
+        free(lpl->name);
         list = eina_list_remove_list(list, l);
-        free(pl);
+        free(lpl);
      }
    eina_hash_set(part_dest_lookup, &pl->key, list);
 }

-- 


Reply via email to