wizard: use eina_list_free to free the list

eina_list_free is doing what I did the complex way with the macro.
This commit is contained in:
Marcel Hollerbach 2014-11-21 19:57:59 +01:00
parent a4b1d63fea
commit 3036de64bc
1 changed files with 1 additions and 6 deletions

View File

@ -145,12 +145,7 @@ wizard_page_init(E_Wizard_Page *pg __UNUSED__, Eina_Bool *need_xdg_desktops __UN
EAPI int
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
{
void *_tmp;
EINA_LIST_FREE(blang_list, _tmp)
{
// we dont need to free _tmp cause this is just a pointer to the basic_language_predefined_pairs
// array. a free will end up in a crash
}
eina_list_free(blang_list);
return 1;
}