diff options
author | Ulf Hermann <[email protected]> | 2018-08-20 12:01:08 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2018-08-20 10:32:56 +0000 |
commit | 4b57f6ac3d5df7359bf13c03aa82fb52bdf33bce (patch) | |
tree | e3cb774e06fcfd3c22756709578e52e785530f6f /src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp | |
parent | 5b2ac16011f0fbd6b5809b9b8f7b8b440f2679c7 (diff) |
QmlProfiler: Don't save the run worker in LocalQmlProfilerSupport
We don't need it and will dangle when the RunControl drops its workers.
Change-Id: I93e872083a870ad860624509622c5d779e35dfd3
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp index 8d10907f9eb..f4d9d7cfa73 100644 --- a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp @@ -231,15 +231,15 @@ LocalQmlProfilerSupport::LocalQmlProfilerSupport(QmlProfilerTool *profilerTool, { setDisplayName("LocalQmlProfilerSupport"); - m_profiler = new QmlProfilerRunner(runControl); - m_profiler->setServerUrl(serverUrl); - connect(m_profiler, &QmlProfilerRunner::starting, + QmlProfilerRunner *profiler = new QmlProfilerRunner(runControl); + profiler->setServerUrl(serverUrl); + connect(profiler, &QmlProfilerRunner::starting, profilerTool, &QmlProfilerTool::finalizeRunControl); - addStopDependency(m_profiler); + addStopDependency(profiler); // We need to open the local server before the application tries to connect. // In the TCP case, it doesn't hurt either to start the profiler before. - addStartDependency(m_profiler); + addStartDependency(profiler); Runnable debuggee = runnable(); |