_item_fx_done(Elm_Transit_Effect *data, Elm_Transit *transit __UNUSED__)
{
Elm_Gen_FX_Item *fx_done_it = data;
- Elm_Gengrid_Smart_Data *sd = GG_IT(fx_done_it->it)->wsd;
+ Elm_Gengrid_Smart_Data *sd;
+
+ if ((!fx_done_it) || (!fx_done_it->it)) return;
- if ((!fx_done_it) || (!fx_done_it->it) || (!sd)) return;
+ sd = GG_IT(fx_done_it->it)->wsd;
+ if (!sd) return;
evas_object_image_source_visible_set(fx_done_it->proxy, EINA_TRUE);
evas_object_lower(fx_done_it->proxy);
Elm_Gen_Item *it = NULL;
Proxy_Item *pi = NULL;
Eina_List *l;
- Elm_Gengrid_Smart_Data *sd = GG_IT(fx_done_it->it)->wsd;
+ Elm_Gengrid_Smart_Data *sd;
+
+ if ((!fx_done_it) || (!fx_done_it->it)) return;
- if ((!fx_done_it) || (!fx_done_it->it) || (!sd)) return;
+ sd = GG_IT(fx_done_it->it)->wsd;
+ if (!sd) return;
sd->fx_items = eina_list_remove(sd->fx_items, fx_done_it);
free(fx_done_it);