diff options
author | Michael Brasser <mbrasser@ford.com> | 2017-12-21 11:03:53 -0600 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2017-12-29 02:30:32 +0000 |
commit | 78a5add79497300802c2152b5bf561b6bef305f1 (patch) | |
tree | 4840dfc5d192ac57d3c3faae91ec791ae1d8d84d /src/qml | |
parent | 6f6fa9ee929292639a24f2b15c432a41df92610d (diff) |
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 <lars.knoll@qt.io>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/types/qqmldelegatemodel.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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; |