elementary/elm_diskselector : Just freeing data in eina_list is not
authorwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 9 Nov 2011 01:35:44 +0000 (01:35 +0000)
committerwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 9 Nov 2011 01:35:44 +0000 (01:35 +0000)
enough. I think diskselector needs refactoring about freeing lists.
I'll check more.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64965 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_diskselector.c

index 23e58b5..e74a0b8 100644 (file)
@@ -678,14 +678,14 @@ _round_items_del(Widget_Data *wd)
    EINA_LIST_FOREACH(wd->under_items, l, it)
      {
         _round_item_del(wd, it);
-        it = NULL;
      }
+   wd->under_items = eina_list_free(wd->under_items);
 
    EINA_LIST_FOREACH(wd->over_items, l, it)
      {
         _round_item_del(wd, it);
-        it = NULL;
      }
+   wd->over_items = eina_list_free(wd->over_items);
 }
 
 static void