projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22adb18
)
genlist: null check++
author
ChunEon Park
<hermet@hermet.pe.kr>
Wed, 7 Jan 2015 05:39:34 +0000
(14:39 +0900)
committer
ChunEon Park
<hermet@hermet.pe.kr>
Wed, 7 Jan 2015 05:39:34 +0000
(14:39 +0900)
src/lib/elm_genlist.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_genlist.c
b/src/lib/elm_genlist.c
index
1b4bc63
..
801f323
100644
(file)
--- a/
src/lib/elm_genlist.c
+++ b/
src/lib/elm_genlist.c
@@
-502,10
+502,12
@@
_view_clear(Evas_Object *view, Eina_List **texts, Eina_List **contents)
Evas_Object *c;
const Eina_List *l;
- EINA_LIST_FOREACH(*texts, l, part)
- edje_object_part_text_set(view, part, NULL);
-
- if (texts) ELM_SAFE_FREE(*texts, elm_widget_stringlist_free);
+ if (texts)
+ {
+ EINA_LIST_FOREACH(*texts, l, part)
+ edje_object_part_text_set(view, part, NULL);
+ ELM_SAFE_FREE(*texts, elm_widget_stringlist_free);
+ }
EINA_LIST_FREE(*contents, c)
evas_object_del(c);