Index: webkit/glue/webview_impl.cc |
=================================================================== |
--- webkit/glue/webview_impl.cc (revision 16977) |
+++ webkit/glue/webview_impl.cc (working copy) |
@@ -906,7 +906,6 @@ |
// Do this first to prevent reentrant notifications from being sent to the |
// initiator of the close. |
delegate_ = NULL; |
- devtools_agent_.reset(NULL); |
if (page_.get()) { |
// Initiate shutdown for the entire frameset. This will cause a lot of |
@@ -915,6 +914,9 @@ |
page_->mainFrame()->loader()->frameDetached(); |
page_.reset(); |
} |
+ |
+ // Should happen after page_.reset(). |
+ devtools_agent_.reset(NULL); |
Release(); // Balances AddRef from WebView::Create |
} |