mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
fix last commit; screensaver.cpp fix scandir memleak
This commit is contained in:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user