themes.cpp fix scandir memleak

This commit is contained in:
Jacek Jendrzej
2020-01-03 18:35:50 +01:00
parent f1cc6baa77
commit e7d900b9c9

View File

@@ -550,7 +550,9 @@ void CThemes::move_userDir()
const char *target = ((std::string)THEMESDIR_VAR + "/" + file).c_str();
printf("[neutrino theme] moving %s to %s\n", dest, target);
rename(dest, target);
free(themelist[count]);
}
free(themelist);
}
printf("[neutrino theme] removing %s\n", USERDIR);
remove(USERDIR);