cedric pushed a commit to branch master.

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

commit a695eee37b622425e4d130afead9265404fbc286
Author: Mykyta Biliavskyi <[email protected]>
Date:   Tue Jan 20 12:55:14 2015 +0100

    edje: edje_pick - fix double free eina hash iterator.
    
    Summary:
    move freeing iterator into block where it was created.
    @fix
    
    Reviewers: raster, Hermet, reutskiy.v.v, cedric
    
    Reviewed By: cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D1883
    
    Signed-off-by: Cedric BAIL <[email protected]>
---
 src/bin/edje/edje_pick.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/edje/edje_pick.c b/src/bin/edje/edje_pick.c
index f2d967d..a05171d 100644
--- a/src/bin/edje/edje_pick.c
+++ b/src/bin/edje/edje_pick.c
@@ -619,8 +619,8 @@ _edje_pick_header_make(Edje_File *out_file , Edje_File 
*edf, Eina_List *ifs)
              ce = eina_hash_find(out_file->collection, ce_cor->entry);
              ce_cor = eina_hash_find(out_file->collection, name1);
              ce_cor->id = ce->id;
+             eina_iterator_free(i);
           }
-        eina_iterator_free(i);
         EINA_LIST_FREE(alist, name1)
           eina_stringshare_del(name1);
      }

-- 


Reply via email to