diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-02-10 10:59:17 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-11 00:24:08 +0100 |
commit | 024c81a58dfe8b476c4cc181d6357cbab55c70c4 (patch) | |
tree | f1e9b66698c87626862e129cbf8ba720e28df881 | |
parent | 8efc7c190b7cd57c3285ba8fcb9e17ea8f4717c2 (diff) |
Fix memory leak in test
Change-Id: I026ce85a6e593d5eccecdf032ee2f0763a2bef87
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
-rw-r--r-- | tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp b/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp index 0ff378e86f..4bf568745b 100644 --- a/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp +++ b/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp @@ -378,11 +378,11 @@ void tst_QQuickAccessible::hitTest() void tst_QQuickAccessible::checkableTest() { - QQuickView *window = new QQuickView(); + QScopedPointer<QQuickView> window(new QQuickView()); window->setSource(testFileUrl("checkbuttons.qml")); window->show(); - QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(window); + QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(window.data()); QVERIFY(iface); QAccessibleInterface *root = iface->child(0); |