bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3036de64bcf082f7c5d727e1841260c4f41ed7fc

commit 3036de64bcf082f7c5d727e1841260c4f41ed7fc
Author: Marcel Hollerbach <[email protected]>
Date:   Fri Nov 21 19:57:59 2014 +0100

    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 da90595..daa6672 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;
 }
 

-- 


Reply via email to