elm elc_naviframe.c: Use EINA_LIST_FREE instead of EINA_LIST_FOREACH + eina_list_free.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Sat, 8 Dec 2012 18:17:12 +0000 (18:17 +0000)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Sat, 8 Dec 2012 18:17:12 +0000 (18:17 +0000)
SVN revision: 80529

legacy/elementary/src/lib/elc_naviframe.c

index b0d08f7..6ee0b6a 100644 (file)
@@ -1297,12 +1297,11 @@ _elm_naviframe_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
      }
 
    //All popping items which are not called yet by animator.
-   EINA_LIST_FOREACH(sd->popping, l, it)
+   EINA_LIST_FREE(sd->popping, l, it)
      {
         if (it->animator) ecore_animator_del(it->animator);
         elm_widget_item_del(it);
      }
-   eina_list_free(sd->popping);
 
    sd->on_deletion = EINA_FALSE;