elm list - fix access of deleted items in list when recursing
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 9 Feb 2015 09:20:45 +0000 (18:20 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 9 Feb 2015 09:20:45 +0000 (18:20 +0900)
@fix

legacy/elementary/src/lib/elm_list.c

index 709e00e..986a454 100644 (file)
@@ -837,6 +837,7 @@ _items_fix(Evas_Object *obj)
    EINA_LIST_FOREACH(sd->items, l, eo_it)
      {
         ELM_LIST_ITEM_DATA_GET(eo_it, it);
+        if (!it) continue;
         if (it->deleted) continue;
         if (it->icon)
           {
@@ -866,6 +867,7 @@ _items_fix(Evas_Object *obj)
    EINA_LIST_FOREACH(sd->items, l, eo_it)
      {
         ELM_LIST_ITEM_DATA_GET(eo_it, it);
+        if (!it) continue;
         if (it->deleted)
           continue;