summaryrefslogtreecommitdiff
path: root/apps/shortcuts.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2021-04-07 23:02:34 +0200
committerChristian Soffke <christian.soffke@gmail.com>2021-04-07 23:02:34 +0200
commit1b82ebc6e422a902c43f8d350328de044453cd1d (patch)
treefecb5e691401407b86d9f6a9bc8e1a856269bfec /apps/shortcuts.c
parent4b263725912939748427faa105f8b2745999a627 (diff)
downloadrockbox-1b82ebc6e422a902c43f8d350328de044453cd1d.tar.gz
rockbox-1b82ebc6e422a902c43f8d350328de044453cd1d.zip
Fix: Directory stream not closed in Shortcuts menu
Change-Id: Ie653682f35945f334e1658804500467f76495fcc
Diffstat (limited to 'apps/shortcuts.c')
-rw-r--r--apps/shortcuts.c2
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)
519 if (info.attribute & ATTR_DIRECTORY) 519 if (info.attribute & ATTR_DIRECTORY)
520 talk_dir_or_spell(sc->u.path, NULL, false); 520 talk_dir_or_spell(sc->u.path, NULL, false);
521 else talk_file_or_spell(path, filename, NULL, false); 521 else talk_file_or_spell(path, filename, NULL, false);
522 closedir(dir);
522 return 0; 523 return 0;
523 } 524 }
524 } 525 }
526 closedir(dir);
525 } 527 }
526 } 528 }
527 else 529 else