Fix: Directory stream not closed in Shortcuts menu

Change-Id: Ie653682f35945f334e1658804500467f76495fcc
This commit is contained in:
Christian Soffke 2021-04-07 23:02:34 +02:00
parent 4b26372591
commit 1b82ebc6e4

View file

@ -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