mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-08 14:18:29 +02:00
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:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user