summaryrefslogtreecommitdiffstats
path: root/src/core/aspects/qaspectengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/aspects/qaspectengine.cpp')
-rw-r--r--src/core/aspects/qaspectengine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/aspects/qaspectengine.cpp b/src/core/aspects/qaspectengine.cpp
index e2ff6d860..f5855b760 100644
--- a/src/core/aspects/qaspectengine.cpp
+++ b/src/core/aspects/qaspectengine.cpp
@@ -170,6 +170,12 @@ void QAspectEngine::shutdown()
// Wait for thread to exit
d->m_aspectThread->wait();
+
+ qCDebug(Aspects) << Q_FUNC_INFO << "deleting aspects";
+ // Deletes aspects in the same thread as the one they were created in
+ qDeleteAll(d->m_aspects);
+
+ qCDebug(Aspects) << Q_FUNC_INFO << "Shutdown complete";
}
void QAspectEngine::setData(const QVariantMap &data)