summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>2011-08-24 20:45:41 -0300
committerQt by Nokia <qt-info@nokia.com>2011-08-25 04:44:31 +0200
commit71f6f5625d3675fa166c81799bc6872d6cb95700 (patch)
treec693f72a823bdb6cc4148cc9acd459f547df77b6
parent15befa5438e3f0e1c2ef3692a5801ad1bcb90b4c (diff)
Fix leak in tst_qsgitem::wheelEvent() autotest
Change-Id: If0fe6d64d1f7cfb8679ce11edda7c02dc3783f95 Reviewed-on: http://codereview.qt.nokia.com/3539 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
-rw-r--r--tests/auto/declarative/qsgitem/tst_qsgitem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qsgitem/tst_qsgitem.cpp b/tests/auto/declarative/qsgitem/tst_qsgitem.cpp
index 7799fef9de..7a612c433b 100644
--- a/tests/auto/declarative/qsgitem/tst_qsgitem.cpp
+++ b/tests/auto/declarative/qsgitem/tst_qsgitem.cpp
@@ -890,6 +890,8 @@ void tst_qsgitem::wheelEvent()
QVERIFY(!event.isAccepted());
QCOMPARE(item->wheelCount, 0);
}
+
+ delete canvas;
}
QTEST_MAIN(tst_qsgitem)