diff options
Diffstat (limited to 'src/Main.cxx')
-rw-r--r-- | src/Main.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index 7ba25dad8..86fc9b09a 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -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; } |