nyx: utilize ini free and fix various memleaks
With the new changes the heap and heap node usage drops 95% on boot. Subsequent accesses to Launch/More config keep the counter the same.
This commit is contained in:
@@ -237,6 +237,8 @@ static void _create_autoboot_window()
|
||||
|
||||
lv_list_add(list_main, NULL, ini_sec->name, _autoboot_enable_main_action);
|
||||
}
|
||||
|
||||
ini_free(&ini_sections);
|
||||
}
|
||||
|
||||
// More configuration container.
|
||||
@@ -279,6 +281,8 @@ static void _create_autoboot_window()
|
||||
|
||||
lv_list_add(list_more_cfg, NULL, ini_sec->name, _autoboot_enable_more_action);
|
||||
}
|
||||
|
||||
ini_free(&ini_list_sections);
|
||||
}
|
||||
|
||||
sd_unmount();
|
||||
|
||||
Reference in New Issue
Block a user