fix last commit; screensaver.cpp fix scandir memleak

Origin commit data
------------------
Branch: ni/coolstream
Commit: 20eed382e3
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-04 (Sat, 04 Jan 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2020-01-04 11:08:11 +01:00
committed by vanhofen
parent e54463039f
commit 442b9f5342

View File

@@ -216,6 +216,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]);