Skip to content

Commit

Permalink
quit from message loop and clear memory
Browse files Browse the repository at this point in the history
  • Loading branch information
ralder committed Mar 17, 2015
1 parent dcf82fe commit 4778d0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions browser/window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Window::Window(brightray::BrowserContext* browser_context)
}

Window::~Window() {
base::MessageLoop::current()->Quit();

auto web_contents = inspectable_web_contents_->GetWebContents();
web_contents->Close();

inspectable_web_contents_.reset();
}

void Window::WindowReady() {
Expand Down

0 comments on commit 4778d0b

Please sign in to comment.