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:
parent
59ba53d48b
commit
9c8c395d5e
@ -299,7 +299,6 @@ bool menuEntryLoad(menuEntry_s* me, const char* name, bool shortcut) {
|
|||||||
//Todo load in the data about the theme?
|
//Todo load in the data about the theme?
|
||||||
//Add a theme name property to each one?
|
//Add a theme name property to each one?
|
||||||
//Ability to load the theme as you hover over?
|
//Ability to load the theme as you hover over?
|
||||||
free((void*)name);//This was allocated by calloc and copied over by strcpy
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -190,6 +190,7 @@ int themeMenuScan(const char* target) {
|
|||||||
menuAddEntry(me);
|
menuAddEntry(me);
|
||||||
else
|
else
|
||||||
menuDeleteEntry(me);
|
menuDeleteEntry(me);
|
||||||
|
free((void*)name);//This was allocated by calloc and copied over by strcpy
|
||||||
}
|
}
|
||||||
|
|
||||||
closedir(dir);
|
closedir(dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user