Chromium Code Reviews| Index: src/heap.h |
| diff --git a/src/heap.h b/src/heap.h |
| index 52ff64abadc337c80c6a8bd393fe2ed731ea1c79..d254b607b6e756d29245c5d312def4d3f00afaaf 100644 |
| --- a/src/heap.h |
| +++ b/src/heap.h |
| @@ -2952,6 +2952,10 @@ class TranscendentalCache { |
| for (int i = 0; i < kNumberOfCaches; ++i) caches_[i] = NULL; |
| } |
| + ~TranscendentalCache() { |
| + for (int i = 0; i < kNumberOfCaches; ++i) delete caches_[i]; |
| + } |
| + |
| // Used to create an external reference. |
| inline Address cache_array_address(); |