Index: Source/web/WebKit.cpp |
diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp |
index 9411f97e35f2895436dc35c9887cec99e90d655c..115b9574ed6922873d187687acef7401b507f8de 100644 |
--- a/Source/web/WebKit.cpp |
+++ b/Source/web/WebKit.cpp |
@@ -202,12 +202,14 @@ void shutdown() |
s_messageLoopInterruptor = 0; |
} |
+ v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); |
+ V8PerIsolateData::willBeDestroyed(isolate); |
+ |
// Detach the main thread before starting the shutdown sequence |
// so that the main thread won't get involved in a GC during the shutdown. |
ThreadState::detachMainThread(); |
- v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); |
- V8PerIsolateData::dispose(isolate); |
+ V8PerIsolateData::destroy(isolate); |
shutdownWithoutV8(); |
} |