summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2015-01-10 17:47:14 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-01-10 17:47:14 +0900
commit30c7a95fce4507c9af538cd8ca9e9953e9913af5 (patch)
tree65a8dc7599018fe4a0f609bc83e57ea007ddbf1a
parentac2a4019f7de4b418fead98f778ce8178d7b8a28 (diff)
genlist: remove unnecessary null check.
-rw-r--r--src/lib/elm_genlist.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index c3e9facd8..dc8b5d77c 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -504,12 +504,9 @@ _view_clear(Evas_Object *view, Eina_List **texts, Eina_List **contents)
504 Evas_Object *c; 504 Evas_Object *c;
505 const Eina_List *l; 505 const Eina_List *l;
506 506
507 if (texts) 507 EINA_LIST_FOREACH(*texts, l, part)
508 { 508 edje_object_part_text_set(view, part, NULL);
509 EINA_LIST_FOREACH(*texts, l, part) 509 ELM_SAFE_FREE(*texts, elm_widget_stringlist_free);
510 edje_object_part_text_set(view, part, NULL);
511 ELM_SAFE_FREE(*texts, elm_widget_stringlist_free);
512 }
513 510
514 EINA_LIST_FREE(*contents, c) 511 EINA_LIST_FREE(*contents, c)
515 evas_object_del(c); 512 evas_object_del(c);