diff --git a/common/menu-entry.c b/common/menu-entry.c index 23fee2f..d74485b 100644 --- a/common/menu-entry.c +++ b/common/menu-entry.c @@ -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; diff --git a/common/menu-list.c b/common/menu-list.c index 22c5fb7..2a1a99d 100644 --- a/common/menu-list.c +++ b/common/menu-list.c @@ -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);