aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlobjectcreator.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2016-06-03 11:22:35 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-06-03 13:24:04 +0000
commit23ec4ac8ba5450b79dbef857f0062bfb068e98d3 (patch)
tree741e18a1bb4617c92a62f2643057b0445b0858fc /src/qml/qml/qqmlobjectcreator.cpp
parenta8399c5440ef35f8feebcd086b5e46ce0000eea5 (diff)
Minor refcounting cleaning
Replace manual reference counting with automated counting, which is less error prone. Change-Id: I6a133bf9610f0d789f745b3cc1f0016e670a9525 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator.cpp')
-rw-r--r--src/qml/qml/qqmlobjectcreator.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlobjectcreator.cpp b/src/qml/qml/qqmlobjectcreator.cpp
index 80e0fa3595..9e2040469b 100644
--- a/src/qml/qml/qqmlobjectcreator.cpp
+++ b/src/qml/qml/qqmlobjectcreator.cpp
@@ -167,7 +167,6 @@ QObject *QQmlObjectCreator::create(int subComponentIndex, QObject *parent, QQmlI
context = new QQmlContextData;
context->isInternal = true;
context->imports = compilationUnit->importCache;
- context->imports->addref();
context->initFromTypeCompilationUnit(compilationUnit, subComponentIndex);
context->setParent(parentContext);