From 78b15a3110ca4ff3fc0914ee2d08ccc348c7eacf Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Tue, 6 Feb 2018 17:45:39 -0500 Subject: [PATCH] Bug 1434968 - Clear mUniqueStacks, mSavedStreamedSamples and mSavedStreamedMarkers when the profiler is stopped. r=njn MozReview-Commit-ID: L1Lk0sj2Bub --HG-- extra : rebase_source : 842b53979122b20687b64278c2be6e706c92991e --- tools/profiler/core/ThreadInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/profiler/core/ThreadInfo.cpp b/tools/profiler/core/ThreadInfo.cpp index 349aa8af1f22..aaad8260fab0 100644 --- a/tools/profiler/core/ThreadInfo.cpp +++ b/tools/profiler/core/ThreadInfo.cpp @@ -68,6 +68,9 @@ void ThreadInfo::StopProfiling() { mResponsiveness.reset(); + mUniqueStacks.reset(); + mSavedStreamedSamples = nullptr; + mSavedStreamedMarkers = nullptr; mIsBeingProfiled = false; }