summaryrefslogtreecommitdiff
path: root/deps/v8/src/profiler/cpu-profiler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/profiler/cpu-profiler.cc')
-rw-r--r--deps/v8/src/profiler/cpu-profiler.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/v8/src/profiler/cpu-profiler.cc b/deps/v8/src/profiler/cpu-profiler.cc
index a915ebd511..841ce6000f 100644
--- a/deps/v8/src/profiler/cpu-profiler.cc
+++ b/deps/v8/src/profiler/cpu-profiler.cc
@@ -208,7 +208,7 @@ int CpuProfiler::GetProfilesCount() {
CpuProfile* CpuProfiler::GetProfile(int index) {
- return profiles_->profiles()->at(index);
+ return profiles_->profiles()->at(index).get();
}
@@ -220,7 +220,6 @@ void CpuProfiler::DeleteAllProfiles() {
void CpuProfiler::DeleteProfile(CpuProfile* profile) {
profiles_->RemoveProfile(profile);
- delete profile;
if (profiles_->profiles()->empty() && !is_profiling_) {
// If this was the last profile, clean up all accessory data as well.
ResetProfiles();