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:
CTCaer committed 2022-05-19 15:14:05 +03:00
1 parent 8428ce1a2e
commit 38010ce65e
7 files changed
+19 -8

No files matched your search

+4
View File
@@ -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();