diff options
author | Jan Arve Saether <jan-arve.saether@digia.com> | 2013-04-12 13:29:20 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-12 14:20:21 +0200 |
commit | bc2dd66e14a01d59e4e40dc11c1b6dcd9b7cee10 (patch) | |
tree | 6bf63ef400ccc1bf43e66786c3fc15e576cbf09d /tests/auto/controls/data | |
parent | f006284a80ed74aefa5bc3c8b89da9f59a8caa43 (diff) | |
download | qtquickcontrols-bc2dd66e14a01d59e4e40dc11c1b6dcd9b7cee10.tar.gz |
Add missing calls to destroy()
For some reason this also fixes the crash reported in QTCOMPONENTS-1312.
At least, I cannot reproduce it anymore.
Task-number: QTCOMPONENTS-1312
Change-Id: I88f5f76ad842fcfc055cc7e36299257857ca4503
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'tests/auto/controls/data')
-rw-r--r-- | tests/auto/controls/data/tst_tableview.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_tableview.qml b/tests/auto/controls/data/tst_tableview.qml index 475d2dd9..cd83ef3d 100644 --- a/tests/auto/controls/data/tst_tableview.qml +++ b/tests/auto/controls/data/tst_tableview.qml @@ -71,6 +71,7 @@ TestCase { var label = findAChild(table.currentRowItem, "label") verify(label !== undefined) compare(label.text, data.expected.toString()); + table.destroy(); } function test_usingcppqobjectmodel() { @@ -89,6 +90,7 @@ TestCase { var label = findAChild(table.currentRowItem, "label") verify(label !== undefined) compare(label.text, valuefrommodel.toString()); + table.destroy(); } function test_usingcppqabstractitemmodel() { @@ -110,6 +112,7 @@ TestCase { var label = findAChild(table.currentRowItem, "label") verify(label !== undefined) compare(label.text, valuefrommodel.toString()) + table.destroy(); } function test_usingcpplistmodel_data() { @@ -134,6 +137,7 @@ TestCase { var label = findAChild(table.currentRowItem, "label") verify(label !== undefined) compare(label.text, data.expected.toString()); + table.destroy(); } // In TableView, drawn text = table.currentRowItem.children[1].children[1].itemAt(0).children[0].children[0].text |