summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-06 06:47:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-06 06:47:19 +0000
commita488797db18ad666acccb21f4067b3d16bd0226a (patch)
tree7a743e128a3f5ab0bca765bf431a2cf548cb7cb8 /uisimulator
parent98cd74530288e2f092b8e8cdd80baf49b0f44cc2 (diff)
fixed a DIR * leak
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@459 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/tree.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/uisimulator/tree.c b/uisimulator/tree.c
index 744bbc75b0..5cbc358842 100644
--- a/uisimulator/tree.c
+++ b/uisimulator/tree.c
@@ -50,9 +50,11 @@ struct entry {
#ifdef HAVE_LCD_BITMAP
-bool is_dir(char* path) {
+bool is_dir(char* path)
+{
DIR* dir = opendir(path);
- return(dir!=0);
+ closedir(dir);
+ return (dir!=0);
}
int static