aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2016-10-26 10:47:21 +0200
committerUlf Hermann <[email protected]>2016-10-26 10:56:23 +0000
commite07b495b709c8229c1b10141039d4fea4c9ef612 (patch)
tree08cc3a46f91f3509ce9cccfef1c8426c53ba0adf /src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
parentd54da12af90242d168d883212c0ef27f83c7f4c8 (diff)
QmlProfiler: Don't delete QObjects from outside their home thread
We cannot do this because the parent object needs to be notified. Change-Id: Id70de2acea4aa241ea0e85b5b02327e1f91b7e68 Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
index e004d229a26..4c933040e64 100644
--- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp
@@ -344,7 +344,7 @@ void QmlProfilerModelManager::save(const QString &filename)
writer->saveQtd(file);
else
writer->saveQzt(file);
- delete writer;
+ writer->deleteLater();
file->deleteLater();
});