Index: Source/platform/heap/ThreadState.cpp |
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp |
index 2fabba119a8053e5e04360f5b13ad5a458f82a1a..079ac1912d0ce202fbbc8a761bbc15343b422211 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; |
@@ -1283,7 +1280,7 @@ void ThreadState::copyStackUntilSafePointScope() |
} |
} |
-void ThreadState::addInterruptor(Interruptor* interruptor) |
+void ThreadState::addInterruptor(PassOwnPtr<Interruptor> interruptor) |
{ |
ASSERT(checkThread()); |
SafePointScope scope(HeapPointersOnStack); |