diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-01-10 10:01:36 +0100 |
---|---|---|
committer | Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> | 2020-01-14 12:36:32 +0200 |
commit | 7ff9e3c3959c2ef1d7c95c8d2a1d277ccb2752a9 (patch) | |
tree | 4a66c1dab694e1a095b9cb15b639ae731daaf30b /tests/auto/qml/qqmlengine/data/evilSingletonInstantiation.qml | |
parent | 11dd3dd1345d08e5f9d2ded4d0e5a3f6d3a8fdef (diff) |
On QQmlEngine destruction drop singletons before type loader
The singleton destruction can trigger additional types to be loaded.
Fixes: QTBUG-80840
Change-Id: Ifa406b2a1cfd3b9e9b36e8005dfc0808eebf15cf
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 3c23f5371a19991771bd29c27d377c6672e46cd1)
Diffstat (limited to 'tests/auto/qml/qqmlengine/data/evilSingletonInstantiation.qml')
-rw-r--r-- | tests/auto/qml/qqmlengine/data/evilSingletonInstantiation.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlengine/data/evilSingletonInstantiation.qml b/tests/auto/qml/qqmlengine/data/evilSingletonInstantiation.qml new file mode 100644 index 0000000000..757b0c90bb --- /dev/null +++ b/tests/auto/qml/qqmlengine/data/evilSingletonInstantiation.qml @@ -0,0 +1,6 @@ +import QtQml 2.12 +import foo.foo 1.0 + +QtObject { + objectName: Singleton.objectName +} |