From 78a5add79497300802c2152b5bf561b6bef305f1 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Thu, 21 Dec 2017 11:03:53 -0600 Subject: Remove extra addref The code was previously updated to use QQmlRefPointer, so we shouldn't explicitly addref. This allows more components to be correctly trimmed when needed. Change-Id: I15a961cfc456eeab5c791c8a282cc7e2852912cb Reviewed-by: Lars Knoll --- src/qml/types/qqmldelegatemodel.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/qml/types/qqmldelegatemodel.cpp b/src/qml/types/qqmldelegatemodel.cpp index 9dd82494ca..2f8a70d63b 100644 --- a/src/qml/types/qqmldelegatemodel.cpp +++ b/src/qml/types/qqmldelegatemodel.cpp @@ -1969,7 +1969,6 @@ void QQmlDelegateModelItem::incubateObject( QQmlComponentPrivate *componentPriv = QQmlComponentPrivate::get(component); incubatorPriv->compilationUnit = componentPriv->compilationUnit; - incubatorPriv->compilationUnit->addref(); incubatorPriv->enginePriv = enginePriv; incubatorPriv->creator.reset(new QQmlObjectCreator(context, componentPriv->compilationUnit, componentPriv->creationContext)); incubatorPriv->subComponentToCreate = componentPriv->start; -- cgit v1.2.3