| Index: src/allocation-tracker.cc
|
| diff --git a/src/allocation-tracker.cc b/src/allocation-tracker.cc
|
| index 59ba6c99a67241345f02e84032326dec7ddea1da..83e1bb4b396a6c371f99a922d44b9c6781d46072 100644
|
| --- a/src/allocation-tracker.cc
|
| +++ b/src/allocation-tracker.cc
|
| @@ -46,6 +46,7 @@ AllocationTraceNode::AllocationTraceNode(
|
|
|
|
|
| AllocationTraceNode::~AllocationTraceNode() {
|
| + for (int i = 0; i < children_.length(); i++) delete children_[i];
|
| }
|
|
|
|
|
| @@ -155,6 +156,11 @@ AllocationTracker::AllocationTracker(
|
|
|
| AllocationTracker::~AllocationTracker() {
|
| unresolved_locations_.Iterate(DeleteUnresolvedLocation);
|
| + for (HashMap::Entry* p = id_to_function_info_.Start();
|
| + p != NULL;
|
| + p = id_to_function_info_.Next(p)) {
|
| + delete reinterpret_cast<AllocationTracker::FunctionInfo* >(p->value);
|
| + }
|
| }
|
|
|
|
|
| @@ -261,6 +267,7 @@ AllocationTracker::UnresolvedLocation::~UnresolvedLocation() {
|
|
|
| void AllocationTracker::UnresolvedLocation::Resolve() {
|
| if (script_.is_null()) return;
|
| + HandleScope scope(script_->GetIsolate());
|
| info_->line = GetScriptLineNumber(script_, start_position_);
|
| info_->column = GetScriptColumnNumber(script_, start_position_);
|
| }
|
|
|