aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-06-26 10:00:06 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-26 06:14:53 +0200
commita8a44e03816dc3333e7485255c5608a40e7ca408 (patch)
tree7268b76dfa24fe7c79ffa0096f91e1acbaa17298 /tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
parent895ec534acb63eacd625e2f320cb266dbff3fdb3 (diff)
Fix crash in tst_qquicklistview.
Destroy the shared canvas before QGuiApplication is destroyed. Task-number: QTBUG-26244 Change-Id: I9aa59bae5314f51c84a61821af2fb3c7a1c77941 Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquicklistview/tst_qquicklistview.cpp')
-rw-r--r--tests/auto/quick/qquicklistview/tst_qquicklistview.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
index f177263b01..92a441a643 100644
--- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
+++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
@@ -74,6 +74,7 @@ public:
private slots:
void init();
+ void cleanupTestCase();
// Test both QListModelInterface and QAbstractItemModel model types
void qListModelInterface_items();
void qListModelInterface_package_items();
@@ -331,6 +332,15 @@ void tst_QQuickListView::init()
#endif
}
+void tst_QQuickListView::cleanupTestCase()
+{
+#ifdef SHARE_VIEWS
+ testForView = QString();
+ delete m_view;
+ m_view = 0;
+#endif
+}
+
template <class T>
void tst_QQuickListView::items(const QUrl &source, bool forceLayout)
{