diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-02-20 10:18:10 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-02-20 10:27:56 +0100 |
commit | ea0956ccad5faab85f828279d500caedb07efac3 (patch) | |
tree | c802231ade3e526e9179a4869dbee0431f954fca /src/qml/qml/qqmlimport.cpp | |
parent | 6b67a538336112671c3512509c7a0c9031732e37 (diff) |
Inline component: Avoid even more leaks
Amends d4f3445bb050bbc34f0e86832fca9b7047041c1e
Change-Id: I1071577529c2db6937affb3fd3087fec75917e8a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlimport.cpp')
-rw-r--r-- | src/qml/qml/qqmlimport.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp index 2a6a77a2fc..e442f07527 100644 --- a/src/qml/qml/qqmlimport.cpp +++ b/src/qml/qml/qqmlimport.cpp @@ -901,6 +901,7 @@ bool QQmlImportsPrivate::resolveType(const QHashedStringRef& type, int *vmajor, int placeholderId = type_return->generatePlaceHolderICId(); icTypePriv->extraData.id->url.setFragment(QString::number(placeholderId)); auto icType = QQmlType(icTypePriv); + icTypePriv->release(); type_return->associateInlineComponent(icName, placeholderId, CompositeMetaTypeIds {}, icType); *type_return = icType; } @@ -937,6 +938,7 @@ bool QQmlImportsPrivate::resolveType(const QHashedStringRef& type, int *vmajor, int placeholderId = type_return->generatePlaceHolderICId(); icTypePriv->extraData.id->url.setFragment(QString::number(placeholderId)); auto icType = QQmlType(icTypePriv); + icTypePriv->release(); type_return->associateInlineComponent(icName, placeholderId, CompositeMetaTypeIds {}, icType); *type_return = icType; } |