diff --git a/src/gui/themes.cpp b/src/gui/themes.cpp index 2b2ee0e4f..7e1beecb7 100644 --- a/src/gui/themes.cpp +++ b/src/gui/themes.cpp @@ -552,7 +552,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);