Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 45a6c576cd216bdd200ff178b633b04553db243c..d862bfc8b2efbcf8656eebf0fd6859c0f22e6890 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1939,13 +1939,14 @@ void Isolate::Deinit() { |
delete basic_block_profiler_; |
basic_block_profiler_ = NULL; |
+ delete heap_profiler_; |
+ heap_profiler_ = NULL; |
+ |
heap_.TearDown(); |
logger_->TearDown(); |
cancelable_task_manager()->CancelAndWait(); |
- delete heap_profiler_; |
- heap_profiler_ = NULL; |
delete cpu_profiler_; |
cpu_profiler_ = NULL; |