1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 12:10:03 +00:00

core: reset selected_font when clearing fonts

This commit is contained in:
bi4k8 2023-05-09 14:14:38 +00:00 committed by bi4k8
parent 00166b49b5
commit c406177d43

View File

@ -1874,10 +1874,12 @@ void clean_up(void) {
for (auto output : display_outputs()) output->cleanup();
conky::shutdown_display_outputs();
#ifdef BUILD_GUI
if (!display_output() || !display_output()->graphical())
if (!display_output() || !display_output()->graphical()) {
fonts.clear(); // in set_default_configurations a font is set but not
// loaded
#endif /* BUILD_GUI */
selected_font = 0;
}
#endif /* BUILD_GUI */
if (info.first_process != nullptr) {
free_all_processes();