* _item_free was called twice when delete index items
* it caused memory damage
while (sd->items)
{
it = sd->items->data;
while (sd->items)
{
it = sd->items->data;
elm_widget_item_del(it);
}
elm_widget_item_del(it);
}
Elm_Index_Item *p_it = eina_list_data_get(lnear);
if (cmp_data_func(p_it->base.data, it->base.data) >= 0)
p_it->base.data = it->base.data;
Elm_Index_Item *p_it = eina_list_data_get(lnear);
if (cmp_data_func(p_it->base.data, it->base.data) >= 0)
p_it->base.data = it->base.data;
elm_widget_item_del(it);
it = NULL;
}
elm_widget_item_del(it);
it = NULL;
}
clear = eina_list_append(clear, it);
}
EINA_LIST_FREE (clear, it)
clear = eina_list_append(clear, it);
}
EINA_LIST_FREE (clear, it)
- {
- _item_free(it);
- elm_widget_item_del(it);
- }
+ elm_widget_item_del(it);