diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-04-07 23:02:34 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2021-04-07 23:02:34 +0200 |
commit | 1b82ebc6e422a902c43f8d350328de044453cd1d (patch) | |
tree | fecb5e691401407b86d9f6a9bc8e1a856269bfec /apps/shortcuts.c | |
parent | 4b263725912939748427faa105f8b2745999a627 (diff) |
Fix: Directory stream not closed in Shortcuts menu
Change-Id: Ie653682f35945f334e1658804500467f76495fcc
Diffstat (limited to 'apps/shortcuts.c')
-rw-r--r-- | apps/shortcuts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/shortcuts.c b/apps/shortcuts.c index 26d8ed4c07..78d8fc6cb5 100644 --- a/apps/shortcuts.c +++ b/apps/shortcuts.c @@ -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 |