fix crash when accessing settings during shutdown

This commit is contained in:
Ailin Nemui 2022-02-05 22:31:42 +01:00
commit 5f29b35fbe
2 changed files with 5 additions and 1 deletions

View file

@ -928,6 +928,7 @@ void settings_deinit(void)
g_hash_table_foreach(settings, (GHFunc) settings_hash_free, NULL);
g_hash_table_destroy(settings);
settings = NULL;
if (mainconfig != NULL) config_close(mainconfig);
}