Browse Source

Woops, how did that happen ;)

Samuel Attard 7 years ago
parent
commit
ecbeb0d117
2 changed files with 3 additions and 1 deletions
  1. 2 0
      atom/browser/api/atom_api_app.cc
  2. 1 1
      atom/browser/api/atom_api_app.h

+ 2 - 0
atom/browser/api/atom_api_app.cc

@@ -533,6 +533,8 @@ App::~App() {
   content::BrowserChildProcessObserver::Remove(this);
 }
 
+App* App::self_ = nullptr;
+
 App* App::Get() {
   return App::self_;
 }

+ 1 - 1
atom/browser/api/atom_api_app.h

@@ -101,7 +101,7 @@ class App : public AtomBrowserClient::Delegate,
  protected:
   explicit App(v8::Isolate* isolate);
   ~App() override;
-  static App* self_ = nullptr;
+  static App* self_;
 
   // BrowserObserver:
   void OnBeforeQuit(bool* prevent_default) override;