Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 4e42b436b1317022c966370fae99334736912e51..445ee48edb6313f2b7dbf9195d07347f5a50cfcc 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1919,13 +1919,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; |