From: Cheng Zhao Date: Fri, 13 Mar 2015 01:26:10 +0000 (-0700) Subject: Initialize AtExitManager before calling MainApplicationBundlePath X-Git-Tag: v0.22.0~3^2~8 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8328bce3f626d815ae4abe1a8a158991d0606c4e;p=electron.git Initialize AtExitManager before calling MainApplicationBundlePath Some singleton calsses require the existence of AtExitManager. --- diff --git a/atom/app/atom_library_main.mm b/atom/app/atom_library_main.mm index bd3f07b4..367bb0d6 100644 --- a/atom/app/atom_library_main.mm +++ b/atom/app/atom_library_main.mm @@ -6,6 +6,7 @@ #include "atom/app/atom_main_delegate.h" #include "atom/app/node_main.h" +#include "base/at_exit.h" #include "base/i18n/icu_util.h" #include "base/mac/bundle_locations.h" #include "brightray/common/mac/main_application_bundle.h" @@ -21,6 +22,7 @@ int AtomMain(int argc, const char* argv[]) { } int AtomInitializeICUandStartNode(int argc, char *argv[]) { + base::AtExitManager atexit_manager; base::mac::SetOverrideFrameworkBundlePath( brightray::MainApplicationBundlePath() .Append("Contents")