fix last commit; screensaver.cpp fix scandir memleak

This commit is contained in:
Jacek Jendrzej
2020-01-03 18:01:28 +01:00
parent f9314ec109
commit f1cc6baa77

View File

@@ -199,6 +199,9 @@ bool CScreenSaver::ReadDir()
int n = scandir(COVERDIR_TMP, &coverlist, 0, alphasort);
if (n > 2){ // we always have the "." and ".." entrys
show_audiocover = true;
}
if(n > -1)
{
for (int i = 0; i < n; i++)
{
free(coverlist[i]);