Index: Source/WebCore/inspector/WorkerInspectorController.cpp |
=================================================================== |
--- Source/WebCore/inspector/WorkerInspectorController.cpp (revision 141144) |
+++ Source/WebCore/inspector/WorkerInspectorController.cpp (working copy) |
@@ -94,7 +94,7 @@ |
: m_workerContext(workerContext) |
, m_stateClient(adoptPtr(new WorkerStateClient(workerContext))) |
, m_state(adoptPtr(new InspectorState(m_stateClient.get()))) |
- , m_instrumentingAgents(adoptPtr(new InstrumentingAgents())) |
+ , m_instrumentingAgents(InstrumentingAgents::create()) |
, m_injectedScriptManager(InjectedScriptManager::createForWorker()) |
, m_runtimeAgent(0) |
{ |
@@ -129,6 +129,7 @@ |
WorkerInspectorController::~WorkerInspectorController() |
{ |
+ m_instrumentingAgents->reset(); |
disconnectFrontend(); |
} |