removed the free from the menu-entry file and put it in the function that called it, now it is easier to track when its freed

This commit is contained in:
NightlyFox 2018-09-20 23:28:35 -05:00
parent 59ba53d48b
commit 9c8c395d5e
2 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,6 @@ bool menuEntryLoad(menuEntry_s* me, const char* name, bool shortcut) {
//Todo load in the data about the theme?
//Add a theme name property to each one?
//Ability to load the theme as you hover over?
free((void*)name);//This was allocated by calloc and copied over by strcpy
}
return true;

View File

@ -190,6 +190,7 @@ int themeMenuScan(const char* target) {
menuAddEntry(me);
else
menuDeleteEntry(me);
free((void*)name);//This was allocated by calloc and copied over by strcpy
}
closedir(dir);