diff options
Diffstat (limited to 'tests/auto/qml/qqmlbinding/tst_qqmlbinding.cpp')
-rw-r--r-- | tests/auto/qml/qqmlbinding/tst_qqmlbinding.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlbinding/tst_qqmlbinding.cpp b/tests/auto/qml/qqmlbinding/tst_qqmlbinding.cpp index b3e6ffd79e..afb42453d4 100644 --- a/tests/auto/qml/qqmlbinding/tst_qqmlbinding.cpp +++ b/tests/auto/qml/qqmlbinding/tst_qqmlbinding.cpp @@ -380,7 +380,8 @@ void tst_qqmlbinding::bindToQmlComponent() { QQmlEngine engine; QQmlComponent c(&engine, testFileUrl("bindToQMLComponent.qml")); - QVERIFY(c.create()); + QScopedPointer<QObject> root {c.create()}; + QVERIFY(root); } // QTBUG-78943 |