aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
-rw-r--r--src/qml/qml/qqmlengine.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp
index 5a20b93c2c..3c86bdbb1b 100644
--- a/src/qml/qml/qqmlengine.cpp
+++ b/src/qml/qml/qqmlengine.cpp
@@ -621,7 +621,7 @@ QQmlEnginePrivate::QQmlEnginePrivate(QQmlEngine *e)
profiler(nullptr),
#endif
outputWarningsToMsgLog(true),
- cleanup(nullptr), erroredBindings(nullptr), inProgressCreations(0),
+ erroredBindings(nullptr), inProgressCreations(0),
#if QT_CONFIG(qml_worker_script)
workerScriptEngine(nullptr),
#endif
@@ -639,15 +639,6 @@ QQmlEnginePrivate::~QQmlEnginePrivate()
if (inProgressCreations)
qWarning() << QQmlEngine::tr("There are still \"%1\" items in the process of being created at engine destruction.").arg(inProgressCreations);
- while (cleanup) {
- QQmlCleanup *c = cleanup;
- cleanup = c->next;
- if (cleanup) cleanup->prev = &cleanup;
- c->next = nullptr;
- c->prev = nullptr;
- c->clear();
- }
-
doDeleteInEngineThread();
if (incubationController) incubationController->d = nullptr;