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:
Miika Pekkarinen 2007-11-23 18:32:00 +00:00
parent cb65426b2c
commit ded6554cb0

View file

@ -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__