From 1b82ebc6e422a902c43f8d350328de044453cd1d Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Wed, 7 Apr 2021 23:02:34 +0200 Subject: Fix: Directory stream not closed in Shortcuts menu Change-Id: Ie653682f35945f334e1658804500467f76495fcc --- apps/shortcuts.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3