Browse Source

node::Environment should be destroyed before AtomBindings

The shutdown code may still uses the APIs provieded by AtomBindings.
Cheng Zhao 8 years ago
parent
commit
99d3fce3c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/atom_browser_main_parts.h

+ 1 - 1
atom/browser/atom_browser_main_parts.h

@@ -80,9 +80,9 @@ class AtomBrowserMainParts : public brightray::BrowserMainParts {
 
   std::unique_ptr<Browser> browser_;
   std::unique_ptr<JavascriptEnvironment> js_env_;
-  std::unique_ptr<NodeEnvironment> node_env_;
   std::unique_ptr<NodeBindings> node_bindings_;
   std::unique_ptr<AtomBindings> atom_bindings_;
+  std::unique_ptr<NodeEnvironment> node_env_;
   std::unique_ptr<NodeDebugger> node_debugger_;
 
   base::Timer gc_timer_;