diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-05-06 06:47:19 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-06 06:47:19 +0000 |
| commit | a488797db18ad666acccb21f4067b3d16bd0226a (patch) | |
| tree | 7a743e128a3f5ab0bca765bf431a2cf548cb7cb8 | |
| parent | 98cd74530288e2f092b8e8cdd80baf49b0f44cc2 (diff) | |
| download | rockbox-a488797db18ad666acccb21f4067b3d16bd0226a.zip rockbox-a488797db18ad666acccb21f4067b3d16bd0226a.tar.gz rockbox-a488797db18ad666acccb21f4067b3d16bd0226a.tar.bz2 rockbox-a488797db18ad666acccb21f4067b3d16bd0226a.tar.xz | |
fixed a DIR * leak
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@459 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | uisimulator/tree.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/uisimulator/tree.c b/uisimulator/tree.c index 744bbc7..5cbc358 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 |