mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix: Directory stream not closed in Shortcuts menu
Change-Id: Ie653682f35945f334e1658804500467f76495fcc
This commit is contained in:
parent
4b26372591
commit
1b82ebc6e4
1 changed files with 2 additions and 0 deletions
|
@ -519,9 +519,11 @@ static int shortcut_menu_speak_item(int selected_item, void * data)
|
|||
if (info.attribute & ATTR_DIRECTORY)
|
||||
talk_dir_or_spell(sc->u.path, NULL, false);
|
||||
else talk_file_or_spell(path, filename, NULL, false);
|
||||
closedir(dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
closedir(dir);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue