forked from qt-creator/qt-creator
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 <hjk@qt.io>
This commit is contained in:
@@ -83,8 +83,6 @@ QmlProfilerRunner::QmlProfilerRunner(RunControl *runControl)
|
|||||||
|
|
||||||
QmlProfilerRunner::~QmlProfilerRunner()
|
QmlProfilerRunner::~QmlProfilerRunner()
|
||||||
{
|
{
|
||||||
if (runControl()->isRunning() && d->m_profilerState)
|
|
||||||
runControl()->initiateStop();
|
|
||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user