| Index: src/profile-generator.cc
|
| ===================================================================
|
| --- src/profile-generator.cc (revision 15486)
|
| +++ src/profile-generator.cc (working copy)
|
| @@ -397,6 +397,7 @@
|
| int security_token_id_;
|
| };
|
|
|
| +
|
| void ProfileTree::FilteredClone(ProfileTree* src, int security_token_id) {
|
| ms_to_ticks_scale_ = src->ms_to_ticks_scale_;
|
| FilteredCloneCallback cb(root_, security_token_id);
|
| @@ -612,10 +613,12 @@
|
| delete *entry_ptr;
|
| }
|
|
|
| +
|
| static void DeleteCpuProfile(CpuProfile** profile_ptr) {
|
| delete *profile_ptr;
|
| }
|
|
|
| +
|
| static void DeleteProfilesList(List<CpuProfile*>** list_ptr) {
|
| if (*list_ptr != NULL) {
|
| (*list_ptr)->Iterate(DeleteCpuProfile);
|
| @@ -623,6 +626,7 @@
|
| }
|
| }
|
|
|
| +
|
| CpuProfilesCollection::~CpuProfilesCollection() {
|
| delete current_profiles_semaphore_;
|
| current_profiles_.Iterate(DeleteCpuProfile);
|
|
|