Main: use AtScopeExit() to call DeinitFS()

This commit is contained in:
Max Kellermann 2019-02-05 23:02:50 +01:00
parent feb5ff9bd2
commit a065c6e6b9

View File

@ -517,6 +517,7 @@ static int
mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
{
ConfigureFS(raw_config);
AtScopeExit() { DeinitFS(); };
glue_mapper_init(raw_config);
@ -655,8 +656,6 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
playlist_list_global_finish();
DeinitFS();
return EXIT_SUCCESS;
}