Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index a274b6a2560e70c2ccff8095cb4ac50e229b693f..9af0abaf5caeabb350c76a0a8eea7a3baba4b390 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1929,9 +1929,6 @@ void Isolate::Deinit() { |
Sampler* sampler = logger_->sampler(); |
if (sampler && sampler->IsActive()) sampler->Stop(); |
- delete interpreter_; |
- interpreter_ = NULL; |
- |
delete deoptimizer_data_; |
deoptimizer_data_ = NULL; |
builtins_.TearDown(); |
@@ -1951,6 +1948,9 @@ void Isolate::Deinit() { |
heap_.TearDown(); |
logger_->TearDown(); |
+ delete interpreter_; |
+ interpreter_ = NULL; |
+ |
cancelable_task_manager()->CancelAndWait(); |
delete cpu_profiler_; |