Revision: 10590
Author: [email protected]
Date: Thu Feb 2 05:26:52 2012
Log: Using local file src/sconsbuild/Debug/test_shell_tests.
Leak of 16 bytes in 1 objects allocated from:
@ 8c06b85 v8::internal::NativeObjectsExplorer::FindOrAddGroupInfo
BUG=112315
TEST=heapcheck build
Review URL: https://chromiumcodereview.appspot.com/9307050
http://code.google.com/p/v8/source/detail?r=10590
Modified:
/branches/bleeding_edge/src/profile-generator.cc
=======================================
--- /branches/bleeding_edge/src/profile-generator.cc Fri Jan 27 05:09:15
2012
+++ /branches/bleeding_edge/src/profile-generator.cc Thu Feb 2 05:26:52
2012
@@ -2720,6 +2720,13 @@
reinterpret_cast<List<HeapObject*>* >(p->value);
delete objects;
}
+ for (HashMap::Entry* p = native_groups_.Start();
+ p != NULL;
+ p = native_groups_.Next(p)) {
+ v8::RetainedObjectInfo* info =
+ reinterpret_cast<v8::RetainedObjectInfo*>(p->value);
+ info->Dispose();
+ }
}
@@ -2824,6 +2831,7 @@
virtual void Dispose() {
CHECK(!disposed_);
disposed_ = true;
+ delete this;
}
virtual bool IsEquivalent(RetainedObjectInfo* other) {
return hash_ == other->GetHash() && !strcmp(label_, other->GetLabel());
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev