summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_textblock.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-12-09 13:33:46 +0000
committerTom Hacohen <tom@stosb.com>2013-12-09 13:33:46 +0000
commitb5262de237adf650e3cafd9fb7ffab828d62345e (patch)
treec2860fc3a9336ffac225bc86124dab1468cc37fb /src/lib/evas/canvas/evas_object_textblock.c
parent6f50fc9d63f9448d87e14e954d28e0f7a6bd3fd3 (diff)
Evas textblock: Slightly improve paragraph items freeing.
Use the EINA_LIST_FREE macro instead of a safe loop and a list free. This is faster and cleaner.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 2c6c8f3706..41cd76404e 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -2886,13 +2886,11 @@ _paragraph_free(const Evas_Object *eo_obj, Evas_Object_Textblock_Paragraph *par)
2886 _paragraph_clear(eo_obj, par); 2886 _paragraph_clear(eo_obj, par);
2887 2887
2888 { 2888 {
2889 Eina_List *i, *i_prev;
2890 Evas_Object_Textblock_Item *it; 2889 Evas_Object_Textblock_Item *it;
2891 EINA_LIST_FOREACH_SAFE(par->logical_items, i, i_prev, it) 2890 EINA_LIST_FREE(par->logical_items, it)
2892 { 2891 {
2893 _item_free(eo_obj, NULL, it); 2892 _item_free(eo_obj, NULL, it);
2894 } 2893 }
2895 eina_list_free(par->logical_items);
2896 } 2894 }
2897#ifdef BIDI_SUPPORT 2895#ifdef BIDI_SUPPORT
2898 if (par->bidi_props) 2896 if (par->bidi_props)