summaryrefslogtreecommitdiff
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-02 10:16:56 +0200
committerMax Kellermann <max@musicpd.org>2018-08-02 10:17:31 +0200
commit22192adbc8b150cf17446936a67d91227e787581 (patch)
treebebceb12ccbf8a10bc1def6b54dc4bab21c344df /src/Main.cxx
parentb8f3de693f3c4a93041585f1f5da26eff3cc7117 (diff)
lib/icu/Init: add class ScopeIcuInit
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index f96146336..41a34c0ee 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -466,8 +466,7 @@ MainOrThrow(int argc, char *argv[])
#endif
#endif
- IcuInit();
-
+ const ScopeIcuInit icu_init;
const ScopeNetInit net_init;
#ifdef ENABLE_DBUS
@@ -720,8 +719,6 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
daemonize_finish();
#endif
- IcuFinish();
-
return EXIT_SUCCESS;
}