summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-22 10:47:33 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-22 10:55:01 +0900
commitc3403450ef916c4b971402e772372c9501924ad9 (patch)
tree29d44c15d8cf222238203d4aa2bfe2817bcb6496
parent0d520bed357f0f721000ea22574d81ac41a6e271 (diff)
elm: Removed unnecessary null check for eina_list_free.
-rw-r--r--src/lib/elm_gengrid.c2
-rw-r--r--src/lib/elm_genlist.c5
-rw-r--r--src/lib/elm_map.c6
3 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 6665c9741..4040810cd 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -2262,7 +2262,7 @@ _elm_gengrid_clear(Evas_Object *obj,
2262 sd->clear_me = EINA_FALSE; 2262 sd->clear_me = EINA_FALSE;
2263 sd->pan_changed = EINA_TRUE; 2263 sd->pan_changed = EINA_TRUE;
2264 ELM_SAFE_FREE(sd->calc_job, ecore_job_del); 2264 ELM_SAFE_FREE(sd->calc_job, ecore_job_del);
2265 if (sd->selected) sd->selected = eina_list_free(sd->selected); 2265 sd->selected = eina_list_free(sd->selected);
2266 if (sd->clear_cb) sd->clear_cb(sd); 2266 if (sd->clear_cb) sd->clear_cb(sd);
2267 sd->pan_x = 0; 2267 sd->pan_x = 0;
2268 sd->pan_y = 0; 2268 sd->pan_y = 0;
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 925671a96..72b676560 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -793,7 +793,7 @@ _item_tree_effect_finish(Elm_Genlist_Smart_Data *sd)
793 evas_object_lower(sd->alpha_bg); 793 evas_object_lower(sd->alpha_bg);
794 evas_object_hide(sd->alpha_bg); 794 evas_object_hide(sd->alpha_bg);
795 sd->move_effect_mode = ELM_GENLIST_TREE_EFFECT_NONE; 795 sd->move_effect_mode = ELM_GENLIST_TREE_EFFECT_NONE;
796 if (sd->move_items) sd->move_items = eina_list_free(sd->move_items); 796 sd->move_items = eina_list_free(sd->move_items);
797 797
798 evas_object_smart_callback_call(sd->pan_obj, "changed", NULL); 798 evas_object_smart_callback_call(sd->pan_obj, "changed", NULL);
799 evas_object_smart_callback_call 799 evas_object_smart_callback_call
@@ -6508,8 +6508,7 @@ elm_genlist_item_fields_update(Elm_Object_Item *item,
6508 { 6508 {
6509 Evas_Object* eobj; 6509 Evas_Object* eobj;
6510 Eina_List* l; 6510 Eina_List* l;
6511 eina_list_free(it->item_focus_chain); 6511 it->item_focus_chain = eina_list_free(it->item_focus_chain);
6512 it->item_focus_chain = NULL;
6513 EINA_LIST_FOREACH(it->content_objs, l, eobj) 6512 EINA_LIST_FOREACH(it->content_objs, l, eobj)
6514 if (elm_object_focus_allow_get(eobj)) 6513 if (elm_object_focus_allow_get(eobj))
6515 it->item_focus_chain = eina_list_append(it->item_focus_chain, eobj); 6514 it->item_focus_chain = eina_list_append(it->item_focus_chain, eobj);
diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c
index b8549821d..378756638 100644
--- a/src/lib/elm_map.c
+++ b/src/lib/elm_map.c
@@ -1672,7 +1672,7 @@ _overlay_group_coord_member_update(Overlay_Group *grp,
1672 _coord_to_region_convert 1672 _coord_to_region_convert
1673 (grp->wsd, x, y, grp->wsd->size.w, &grp->lon, &grp->lat); 1673 (grp->wsd, x, y, grp->wsd->size.w, &grp->lon, &grp->lat);
1674 1674
1675 if (grp->members) eina_list_free(grp->members); 1675 eina_list_free(grp->members);
1676 grp->members = members; 1676 grp->members = members;
1677 snprintf(text, sizeof(text), "%d", eina_list_count(members)); 1677 snprintf(text, sizeof(text), "%d", eina_list_count(members));
1678 1678
@@ -1728,9 +1728,9 @@ _overlay_group_free(Overlay_Group *grp)
1728{ 1728{
1729 EINA_SAFETY_ON_NULL_RETURN(grp); 1729 EINA_SAFETY_ON_NULL_RETURN(grp);
1730 1730
1731 if (grp->overlay) free(grp->overlay); 1731 free(grp->overlay);
1732 if (grp->ovl) _overlay_default_free(grp->ovl); 1732 if (grp->ovl) _overlay_default_free(grp->ovl);
1733 if (grp->members) eina_list_free(grp->members); 1733 eina_list_free(grp->members);
1734 1734
1735 free(grp); 1735 free(grp);
1736} 1736}