Index: Source/web/InspectorFrontendClientImpl.cpp |
diff --git a/Source/web/InspectorFrontendClientImpl.cpp b/Source/web/InspectorFrontendClientImpl.cpp |
index dec64f2ae13ef0385262df036f12230f2bab36bd..b8c312d3c0f4bcbe0799cda7bf06722044686d18 100644 |
--- a/Source/web/InspectorFrontendClientImpl.cpp |
+++ b/Source/web/InspectorFrontendClientImpl.cpp |
@@ -54,8 +54,22 @@ InspectorFrontendClientImpl::InspectorFrontendClientImpl(Page* frontendPage, Web |
InspectorFrontendClientImpl::~InspectorFrontendClientImpl() |
{ |
- if (m_frontendHost) |
+ ASSERT(!m_frontendHost); |
+} |
+ |
+void InspectorFrontendClientImpl::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_frontendPage); |
+ visitor->trace(m_frontendHost); |
+ InspectorFrontendClient::trace(visitor); |
+} |
+ |
+void InspectorFrontendClientImpl::dispose() |
+{ |
+ if (m_frontendHost) { |
m_frontendHost->disconnectClient(); |
+ m_frontendHost = nullptr; |
+ } |
m_client = 0; |
} |