diff options
Diffstat (limited to 'tests/auto/qml/qqmlincubator/data/garbageCollection2.qml')
-rw-r--r-- | tests/auto/qml/qqmlincubator/data/garbageCollection2.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlincubator/data/garbageCollection2.qml b/tests/auto/qml/qqmlincubator/data/garbageCollection2.qml new file mode 100644 index 0000000000..b5ba531ede --- /dev/null +++ b/tests/auto/qml/qqmlincubator/data/garbageCollection2.qml @@ -0,0 +1,12 @@ +import QtQml +QtObject { + property Component comp: Component { + QtObject {} + } + + property QtObject incubated: { + var i = comp.incubateObject(null, {}, Qt.Synchronous); + gc(); + return i.object + } +} |