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.
This commit is contained in:
Tom Hacohen 2013-12-09 13:33:46 +00:00
parent 6f50fc9d63
commit b5262de237
1 changed files with 1 additions and 3 deletions

View File

@ -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)