Index: Source/WebCore/inspector/InspectorController.cpp |
=================================================================== |
--- Source/WebCore/inspector/InspectorController.cpp (revision 141144) |
+++ Source/WebCore/inspector/InspectorController.cpp (working copy) |
@@ -80,7 +80,7 @@ |
namespace WebCore { |
InspectorController::InspectorController(Page* page, InspectorClient* inspectorClient) |
- : m_instrumentingAgents(adoptPtr(new InstrumentingAgents())) |
+ : m_instrumentingAgents(InstrumentingAgents::create()) |
, m_injectedScriptManager(InjectedScriptManager::createForPage()) |
, m_state(adoptPtr(new InspectorState(inspectorClient))) |
, m_overlay(InspectorOverlay::create(page, inspectorClient)) |
@@ -179,6 +179,7 @@ |
InspectorController::~InspectorController() |
{ |
+ m_instrumentingAgents->reset(); |
m_agents.discardAgents(); |
ASSERT(!m_inspectorClient); |
} |