aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2018-08-20 11:58:18 +0200
committerUlf Hermann <[email protected]>2018-08-20 10:32:49 +0000
commit5b2ac16011f0fbd6b5809b9b8f7b8b440f2679c7 (patch)
tree2b839b93145ecaed0edf3480687e00ba4cf82059 /src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp
parent81d5d99db8f84d81ff3ed8b8a7eacc1ce29cd45a (diff)
QmlProfiler: Don't stop the RunControl from RunWorker dtor
The QmlProfilerRunner is owned by its RunControl. It will only be destroyed from the RunControl's dtor and therefore we don't need to stop the RunControl at that point. Furthermore, accessing the RunControl there is dangerous because it is partially destroyed already. Change-Id: I006e053bb9cd0da23cedb8fedfc46e049b72517d Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp
index d2ee9434d18..8d10907f9eb 100644
--- a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp
@@ -83,8 +83,6 @@ QmlProfilerRunner::QmlProfilerRunner(RunControl *runControl)
QmlProfilerRunner::~QmlProfilerRunner()
{
- if (runControl()->isRunning() && d->m_profilerState)
- runControl()->initiateStop();
delete d;
}