Main: use AtScopeExit() to call DeinitFS()
This commit is contained in:
parent
feb5ff9bd2
commit
a065c6e6b9
@ -517,6 +517,7 @@ static int
|
|||||||
mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
|
mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
|
||||||
{
|
{
|
||||||
ConfigureFS(raw_config);
|
ConfigureFS(raw_config);
|
||||||
|
AtScopeExit() { DeinitFS(); };
|
||||||
|
|
||||||
glue_mapper_init(raw_config);
|
glue_mapper_init(raw_config);
|
||||||
|
|
||||||
@ -655,8 +656,6 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
|
|||||||
|
|
||||||
playlist_list_global_finish();
|
playlist_list_global_finish();
|
||||||
|
|
||||||
DeinitFS();
|
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user