summaryrefslogtreecommitdiffstats
path: root/apps/shortcuts.c
diff options
context:
space:
mode:
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)
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