summaryrefslogtreecommitdiff
path: root/uisimulator/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/tree.c')
-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