mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +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);
|
int n = scandir(COVERDIR_TMP, &coverlist, 0, alphasort);
|
||||||
if (n > 2){ // we always have the "." and ".." entrys
|
if (n > 2){ // we always have the "." and ".." entrys
|
||||||
show_audiocover = true;
|
show_audiocover = true;
|
||||||
|
}
|
||||||
|
if(n > -1)
|
||||||
|
{
|
||||||
for (int i = 0; i < n; i++)
|
for (int i = 0; i < n; i++)
|
||||||
{
|
{
|
||||||
free(coverlist[i]);
|
free(coverlist[i]);
|
||||||
|
Reference in New Issue
Block a user