Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index b5fe18454e31005d64bb7e611a25dd60449eea67..f28c9260b9d8ebc211381ed971db3bbfaad88977 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -7816,7 +7816,13 @@ void ExternalStringTable::CleanUp() { |
void ExternalStringTable::TearDown() { |
+ for (int i = 0; i < new_space_strings_.length(); ++i) { |
+ heap_->FinalizeExternalString(ExternalString::cast(new_space_strings_[i])); |
+ } |
new_space_strings_.Free(); |
+ for (int i = 0; i < old_space_strings_.length(); ++i) { |
+ heap_->FinalizeExternalString(ExternalString::cast(old_space_strings_[i])); |
+ } |
old_space_strings_.Free(); |
} |