diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2007-11-23 18:32:00 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2007-11-23 18:32:00 +0000 |
commit | ded6554cb0393bf95ab119086b4c8d704e8fd23d (patch) | |
tree | 8c5a5131214a683738a9c2f53f493b31e084b345 /apps | |
parent | cb65426b2c76ac64852bda9ece6d72be404bc636 (diff) | |
download | rockbox-ded6554cb0393bf95ab119086b4c8d704e8fd23d.tar.gz rockbox-ded6554cb0393bf95ab119086b4c8d704e8fd23d.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tagcache.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 2882aa8b00..bf2df7cc0b 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -3807,8 +3807,11 @@ static bool check_dir(const char *dirname) | |||
3807 | 3807 | ||
3808 | /* check for a database.ignore file */ | 3808 | /* check for a database.ignore file */ |
3809 | snprintf(newpath, MAX_PATH, "%s/database.ignore", dirname); | 3809 | snprintf(newpath, MAX_PATH, "%s/database.ignore", dirname); |
3810 | if(file_exists(newpath)) | 3810 | if (file_exists(newpath)) |
3811 | { | ||
3812 | closedir(dir); | ||
3811 | return false; | 3813 | return false; |
3814 | } | ||
3812 | 3815 | ||
3813 | /* Recursively scan the dir. */ | 3816 | /* Recursively scan the dir. */ |
3814 | #ifdef __PCTOOL__ | 3817 | #ifdef __PCTOOL__ |