forked from len0rd/rockbox
fixed a DIR * leak
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@459 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
98cd745302
commit
a488797db1
1 changed files with 4 additions and 2 deletions
|
|
@ -50,9 +50,11 @@ struct entry {
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
|
||||||
bool is_dir(char* path) {
|
bool is_dir(char* path)
|
||||||
|
{
|
||||||
DIR* dir = opendir(path);
|
DIR* dir = opendir(path);
|
||||||
return(dir!=0);
|
closedir(dir);
|
||||||
|
return (dir!=0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int static
|
int static
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue