summaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlobjectcreator.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2018-02-07 11:03:01 +0100
committerLiang Qi <liang.qi@qt.io>2018-02-07 11:03:01 +0100
commit3e3c6717ba634825a65069541500c40645a808ee (patch)
treeed47bf1c276e81f5585b4ac139f6bf2a09c1a437 /src/qml/qml/qqmlobjectcreator.cpp
parent6fe4c1f2803abac74da152b9a5656eff2d71dceb (diff)
parentc6b3c69e014f846a142c2429cd2d675c75b74245 (diff)
Merge remote-tracking branch 'origin/5.9' into 5.105.10
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator.cpp')
-rw-r--r--src/qml/qml/qqmlobjectcreator.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlobjectcreator.cpp b/src/qml/qml/qqmlobjectcreator.cpp
index 7caab2a5d3..9114fbb83a 100644
--- a/src/qml/qml/qqmlobjectcreator.cpp
+++ b/src/qml/qml/qqmlobjectcreator.cpp
@@ -203,10 +203,7 @@ QObject *QQmlObjectCreator::create(int subComponentIndex, QObject *parent, QQmlI
if (instance) {
QQmlData *ddata = QQmlData::get(instance);
Q_ASSERT(ddata);
- if (ddata->compilationUnit)
- ddata->compilationUnit->release();
ddata->compilationUnit = compilationUnit;
- ddata->compilationUnit->addref();
}
if (topLevelCreator)