| Index: Source/platform/heap/ThreadState.cpp
|
| diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
|
| index 2fabba119a8053e5e04360f5b13ad5a458f82a1a..f588470b24fdb7994183580523fa3e93bbe2d2cb 100644
|
| --- a/Source/platform/heap/ThreadState.cpp
|
| +++ b/Source/platform/heap/ThreadState.cpp
|
| @@ -139,9 +139,6 @@ ThreadState::~ThreadState()
|
| for (int i = 0; i < NumberOfHeaps; ++i)
|
| delete m_heaps[i];
|
|
|
| - for (Interruptor* interruptor : m_interruptors)
|
| - delete interruptor;
|
| -
|
| **s_threadSpecific = nullptr;
|
| if (isMainThread()) {
|
| s_mainThreadStackStart = 0;
|
| @@ -1289,7 +1286,7 @@ void ThreadState::addInterruptor(Interruptor* interruptor)
|
| SafePointScope scope(HeapPointersOnStack);
|
| {
|
| MutexLocker locker(threadAttachMutex());
|
| - m_interruptors.append(interruptor);
|
| + m_interruptors.append(adoptPtr(interruptor));
|
| }
|
| }
|
|
|
|
|