From 3036de64bcf082f7c5d727e1841260c4f41ed7fc Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Fri, 21 Nov 2014 19:57:59 +0100 Subject: [PATCH] wizard: use eina_list_free to free the list eina_list_free is doing what I did the complex way with the macro. --- src/modules/wizard/page_010.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/wizard/page_010.c b/src/modules/wizard/page_010.c index da9059597..daa667214 100644 --- a/src/modules/wizard/page_010.c +++ b/src/modules/wizard/page_010.c @@ -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; }