- if(Main_Window_List){
- g_slist_foreach(Main_Window_List, main_window_destroy_walk, NULL );
- g_slist_free(Main_Window_List);
+ if(g_main_window_list){
+ g_slist_foreach(g_main_window_list, main_window_destroy_walk, NULL );
+ g_slist_free(g_main_window_list);