remove filter queue in item deleting 38/91238/2
authorSangHyeon Lee <sh10233.lee@samsung.com>
Thu, 6 Oct 2016 10:36:00 +0000 (19:36 +0900)
committerSangHyeon Lee <sh10233.lee@samsung.com>
Mon, 10 Oct 2016 04:40:18 +0000 (13:40 +0900)
Change-Id: I47e7b3a52dfee433d20094e1115264e99b3cc1c9
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
src/mobile_lib/elm_genlist.c

index 1808cb2..3065202 100644 (file)
@@ -5742,6 +5742,12 @@ _item_free(Elm_Gen_Item *it)
         GL_IT(it)->queued = EINA_FALSE;
         sd->queue = eina_list_remove(sd->queue, it);
      }
+   if (sd->filter_queue && !it->filtered)
+     {
+        l = eina_list_data_find_list(sd->filter_queue, it);
+        if (l)
+          sd->filter_queue = eina_list_remove_list(sd->filter_queue, l);
+     }
    if (GL_IT(it)->type == ELM_GENLIST_ITEM_GROUP)
       sd->group_items = eina_list_remove(sd->group_items, it);