tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b5262de237adf650e3cafd9fb7ffab828d62345e

commit b5262de237adf650e3cafd9fb7ffab828d62345e
Author: Tom Hacohen <t...@stosb.com>
Date:   Mon Dec 9 13:33:46 2013 +0000

    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.
---
 src/lib/evas/canvas/evas_object_textblock.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/lib/evas/canvas/evas_object_textblock.c 
b/src/lib/evas/canvas/evas_object_textblock.c
index 2c6c8f3..41cd764 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)
    _paragraph_clear(eo_obj, par);
 
      {
-        Eina_List *i, *i_prev;
         Evas_Object_Textblock_Item *it;
-        EINA_LIST_FOREACH_SAFE(par->logical_items, i, i_prev, it)
+        EINA_LIST_FREE(par->logical_items, it)
           {
              _item_free(eo_obj, NULL, it);
           }
-        eina_list_free(par->logical_items);
      }
 #ifdef BIDI_SUPPORT
    if (par->bidi_props)

-- 


Reply via email to