summaryrefslogtreecommitdiff
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-02-05 23:02:50 +0100
committerMax Kellermann <max@musicpd.org>2019-02-05 23:02:50 +0100
commita065c6e6b9655c2a87e42bd957d6a561d4a52f91 (patch)
tree7e26f09d891cf3d411f2fcba7ea358a70a31490a /src/Main.cxx
parentfeb5ff9bd2c5d88e84cb843e15692896e3bd1936 (diff)
Main: use AtScopeExit() to call DeinitFS()
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx3
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;
}