edje: edje_pick - fix double free eina hash iterator.
authorMykyta Biliavskyi <m.biliavskyi@samsung.net>
Tue, 20 Jan 2015 11:55:14 +0000 (12:55 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 20 Jan 2015 11:55:17 +0000 (12:55 +0100)
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 <cedric@osg.samsung.com>
src/bin/edje/edje_pick.c

index f2d967d..a05171d 100644 (file)
@@ -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);
      }