diff --git a/Atom/Classes/AtomController.mm b/Atom/Classes/AtomController.mm index 1ebb3131c..19d17f620 100644 --- a/Atom/Classes/AtomController.mm +++ b/Atom/Classes/AtomController.mm @@ -86,9 +86,11 @@ // sequence by getting rid of the window. By returning YES, we allow the window // to be removed from the screen. - (BOOL)windowShouldClose:(id)window { + _handler->GetBrowser()->CloseDevTools(); + _appContext = NULL; _handler = NULL; - + // Clean ourselves up after clearing the stack of anything that might have the window on it. [self autorelease];