BUG=93253
TEST=running valgrind on cctest/test-api/RunTwoIsolatesOnSingleThread reports fewer leaks than before
Review URL: http://codereview.chromium.org/
7624043
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8967
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
spare_(NULL),
call_depth_(0) { }
+ ~HandleScopeImplementer() {
+ DeleteArray(spare_);
+ }
+
// Threading support for handle data.
static int ArchiveSpacePerThread();
char* RestoreThread(char* from);
if (list_ == data) list_ = data->next_;
if (data->next_ != NULL) data->next_->prev_ = data->prev_;
if (data->prev_ != NULL) data->prev_->next_ = data->next_;
+ delete data;
}
// Has to be called while counters_ are still alive.
zone_.DeleteKeptSegment();
+ delete[] assembler_spare_buffer_;
+ assembler_spare_buffer_ = NULL;
+
delete unicode_cache_;
unicode_cache_ = NULL;