| Index: Source/platform/WebThreadSupportingGC.cpp
|
| diff --git a/Source/platform/WebThreadSupportingGC.cpp b/Source/platform/WebThreadSupportingGC.cpp
|
| index b4c3d429d5b7512f94ce3b01f97b78825ec44e2e..e530447a0c75bbaa1e8603ff09ee1d5082a17406 100644
|
| --- a/Source/platform/WebThreadSupportingGC.cpp
|
| +++ b/Source/platform/WebThreadSupportingGC.cpp
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "config.h"
|
| #include "platform/WebThreadSupportingGC.h"
|
| +#include "WebThreadOwnPtr.h"
|
|
|
| namespace blink {
|
|
|
| @@ -13,7 +14,7 @@ PassOwnPtr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name
|
| }
|
|
|
| WebThreadSupportingGC::WebThreadSupportingGC(const char* name)
|
| - : m_thread(adoptPtr(blink::Platform::current()->createThread(name)))
|
| + : m_thread(new WebThreadOwnPtr(blink::Platform::current()->createThread(name)))
|
| {
|
| }
|
|
|
| @@ -22,7 +23,7 @@ WebThreadSupportingGC::~WebThreadSupportingGC()
|
| if (ThreadState::current()) {
|
| // WebThread's destructor blocks until all the tasks are processed.
|
| ThreadState::SafePointScope scope(ThreadState::HeapPointersOnStack);
|
| - m_thread.clear();
|
| + m_thread->clear();
|
| }
|
| }
|
|
|
|
|