Free all the charmaps after parsing

This commit is contained in:
Rangi42
2024-02-19 09:00:15 -05:00
parent 464000bca8
commit ee59f17ea1
4 changed files with 19 additions and 8 deletions

View File

@@ -193,13 +193,6 @@ static void printUsage(void)
stderr);
}
// Cleans up what has been done
// Mostly here to please tools such as `valgrind` so actual errors can be seen
static void cleanup(void)
{
obj_Cleanup();
}
enum ScrambledRegion {
SCRAMBLE_ROMX,
SCRAMBLE_SRAM,
@@ -465,5 +458,6 @@ int main(int argc, char *argv[])
out_WriteFiles();
// Do cleanup before quitting, though.
cleanup();
// Mostly here to please tools such as `valgrind` so actual errors can be seen
obj_Cleanup();
}