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
2022-05-19 15:14:05 +03:00
parent 8428ce1a2e
commit 38010ce65e
7 changed files with 19 additions and 8 deletions

View File

@@ -247,6 +247,8 @@ void load_saved_configuration()
}
}
ini_free(&ini_sections);
skip_main_cfg_parse:
if (!ini_parse(&ini_nyx_sections, "bootloader/nyx.ini", false))
return;
@@ -282,6 +284,8 @@ skip_main_cfg_parse:
break;
}
}
ini_free(&ini_nyx_sections);
}
#define EXCP_EN_ADDR 0x4003FFFC