From: Chris Adams Date: Mon, 12 Mar 2012 03:39:45 +0000 (+1000) Subject: Fix leak in tst_qquicklistmodel unit test X-Git-Tag: upstream/5.2.1~2388 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c71db2cf825086e6de0735cfea19c5c7e851def4;p=platform%2Fupstream%2Fqtdeclarative.git Fix leak in tst_qquicklistmodel unit test Change-Id: I6883f263648d425240503f6abbd358b744d68506 Reviewed-by: Glenn Watson --- diff --git a/tests/auto/qml/qquicklistmodel/tst_qquicklistmodel.cpp b/tests/auto/qml/qquicklistmodel/tst_qquicklistmodel.cpp index 8d62376..bf26452 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 >().contains(role)); + + delete item; } void tst_qquicklistmodel::get_worker_data()