forked from enlightenment/enlightenment
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:
parent
a4b1d63fea
commit
3036de64bc
|
@ -145,12 +145,7 @@ wizard_page_init(E_Wizard_Page *pg __UNUSED__, Eina_Bool *need_xdg_desktops __UN
|
||||||
EAPI int
|
EAPI int
|
||||||
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
|
wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
|
||||||
{
|
{
|
||||||
void *_tmp;
|
eina_list_free(blang_list);
|
||||||
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
|
|
||||||
}
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue