aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2012-03-12 13:39:45 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-13 02:02:49 +0100
commitc71db2cf825086e6de0735cfea19c5c7e851def4 (patch)
tree84783d326cc3309641120aa68fafb18d93881574 /tests
parent52d3d361a0db4b0cfdf795b7998733f61ca3082d (diff)
Fix leak in tst_qquicklistmodel unit test
Change-Id: I6883f263648d425240503f6abbd358b744d68506 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qquicklistmodel/tst_qquicklistmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qquicklistmodel/tst_qquicklistmodel.cpp b/tests/auto/qml/qquicklistmodel/tst_qquicklistmodel.cpp
index 8d6237679f..bf26452f0e 100644
--- a/tests/auto/qml/qquicklistmodel/tst_qquicklistmodel.cpp
+++ b/tests/auto/qml/qquicklistmodel/tst_qquicklistmodel.cpp
@@ -990,6 +990,8 @@ void tst_qquicklistmodel::get_worker()
QCOMPARE(spyResult.at(0).toInt(), index);
QCOMPARE(spyResult.at(1).toInt(), 1); // only 1 item is modified at a time
QVERIFY(spyResult.at(2).value<QList<int> >().contains(role));
+
+ delete item;
}
void tst_qquicklistmodel::get_worker_data()