From bedc39d137ad1dbb5d96c25c1fc9d305bdc24fca Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 28 Feb 2012 11:06:33 -0800 Subject: [PATCH] Close dev tools when window closes. --- Atom/Classes/AtomController.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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];