evas: properly clean up all memory.

This commit is contained in:
Cedric BAIL 2015-12-02 12:30:04 -08:00
parent 11ac6b145d
commit d577366acb
1 changed files with 4 additions and 2 deletions

View File

@ -667,8 +667,10 @@ _evas_textblock_selection_iterator_get_container(Evas_Textblock_Selection_Iterat
static void
_evas_textblock_selection_iterator_free(Evas_Textblock_Selection_Iterator *it)
{
while (it->list)
it->list = eina_list_remove_list(it->list, it->list);
Evas_Textblock_Rectangle *tr;
EINA_LIST_FREE(it->list, tr)
free(tr);
EINA_MAGIC_SET(&it->iterator, 0);
free(it);
}