From 7a820bec9dd13fad069f71be83bfb97dcac4d14a Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Tue, 2 Jul 2013 08:27:27 +0000 Subject: [PATCH] Properly cleanup the transcendental subcaches. R=danno@chromium.org Review URL: https://codereview.chromium.org/18487002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15437 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/heap.h b/src/heap.h index 52ff64abad..d254b607b6 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();