| Index: Source/core/workers/WorkerThread.cpp
|
| diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
|
| index 845c6a77162bde9868748b97dc1360e8543fbd58..5c0b410876bd36448b622d837a969523647b7de1 100644
|
| --- a/Source/core/workers/WorkerThread.cpp
|
| +++ b/Source/core/workers/WorkerThread.cpp
|
| @@ -439,8 +439,8 @@ v8::Isolate* WorkerThread::initializeIsolate()
|
| v8::Isolate* isolate = V8PerIsolateData::initialize();
|
| V8Initializer::initializeWorker(isolate);
|
|
|
| - m_interruptor = adoptPtr(new V8IsolateInterruptor(isolate));
|
| - ThreadState::current()->addInterruptor(m_interruptor.get());
|
| + OwnPtr<V8IsolateInterruptor> interruptor = adoptPtr(new V8IsolateInterruptor(isolate));
|
| + ThreadState::current()->addInterruptor(interruptor.release());
|
| ThreadState::current()->registerTraceDOMWrappers(isolate, V8GCController::traceDOMWrappers);
|
|
|
| return isolate;
|
| @@ -451,7 +451,6 @@ void WorkerThread::willDestroyIsolate()
|
| ASSERT(isCurrentThread());
|
| ASSERT(m_isolate);
|
| V8PerIsolateData::willBeDestroyed(m_isolate);
|
| - ThreadState::current()->removeInterruptor(m_interruptor.get());
|
| }
|
|
|
| void WorkerThread::destroyIsolate()
|
|
|