Elm_Genlist_Smart_Data *sd = GL_IT(it)->wsd;
Item_Cache *ic = NULL;
-#if GENLIST_FX_SUPPORT
- if (sd->pending_del_items) return;
-#endif
if (sd->item_cache_count >= sd->item_cache_max)
{
ic = EINA_INLIST_CONTAINER_GET(sd->item_cache->last, Item_Cache);
_contract_signal_cb, it);
_item_mouse_callbacks_del(it, VIEW(it));
+#if GENLIST_FX_SUPPORT
+ if ((it->item->nocache_once) || (it->item->nocache) || (sd->pending_del_items))
+#else
if ((it->item->nocache_once) || (it->item->nocache))
+#endif
{
if (VIEW(it)) evas_object_del(VIEW(it));
if (it->spacer) evas_object_del(it->spacer);
_item_unrealize(it, EINA_FALSE);
- if (VIEW(it)) evas_object_del(VIEW(it));
- if (it->spacer) evas_object_del(it->spacer);
-
- VIEW(it) = NULL;
- it->spacer = NULL;
-
elm_genlist_item_class_unref((Elm_Genlist_Item_Class *)it->itc);
if (it->item) free(it->item);
it->item = NULL;