From 23ec4ac8ba5450b79dbef857f0062bfb068e98d3 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 3 Jun 2016 11:22:35 +0200 Subject: Minor refcounting cleaning Replace manual reference counting with automated counting, which is less error prone. Change-Id: I6a133bf9610f0d789f745b3cc1f0016e670a9525 Reviewed-by: Lars Knoll --- src/qml/qml/qqmlobjectcreator.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/qml/qml/qqmlobjectcreator.cpp') 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); -- cgit v1.2.3