Free resources properly. Fixes all kind of strange issues (shutdown problems with dircache and dirfds running out) with the newly added database.ignore -feature.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15780 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cb65426b2c
commit
ded6554cb0
1 changed files with 4 additions and 1 deletions
|
@ -3807,8 +3807,11 @@ static bool check_dir(const char *dirname)
|
|||
|
||||
/* check for a database.ignore file */
|
||||
snprintf(newpath, MAX_PATH, "%s/database.ignore", dirname);
|
||||
if(file_exists(newpath))
|
||||
if (file_exists(newpath))
|
||||
{
|
||||
closedir(dir);
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Recursively scan the dir. */
|
||||
#ifdef __PCTOOL__
|
||||
|
|
Loading…
Reference in a new issue