Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 85666153016d71cbb47f59854f66cdde27ed7860..1b031f8a937559306d048d616e59f9955170ce2e 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -2001,6 +2001,12 @@ Isolate::~Isolate() { |
delete debug_; |
debug_ = NULL; |
+ |
+#if USE_SIMULATOR |
+ Simulator::TearDown(simulator_i_cache_, simulator_redirection_); |
+ simulator_i_cache_ = nullptr; |
+ simulator_redirection_ = nullptr; |
+#endif |
} |