summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeitem
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-03-05 02:52:06 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-03-05 02:52:06 (GMT)
commita7b46bda37a428ae2e5554aa8e58469c92b310a9 (patch)
tree4bf2eba8eb28ceb5edf7837d1cb7aa83cd920d9e /tests/auto/declarative/qdeclarativeitem
parent87628252d721d4f8cf6963e5f20a02a56bd70f9a (diff)
downloadQt-a7b46bda37a428ae2e5554aa8e58469c92b310a9.zip
Qt-a7b46bda37a428ae2e5554aa8e58469c92b310a9.tar.gz
Qt-a7b46bda37a428ae2e5554aa8e58469c92b310a9.tar.bz2
Fix test leaks
Diffstat (limited to 'tests/auto/declarative/qdeclarativeitem')
-rw-r--r--tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp b/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp
index 3e69db9..5549a3e 100644
--- a/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp
+++ b/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp
@@ -242,6 +242,8 @@ void tst_QDeclarativeItem::keyNavigation()
item = findItem<QDeclarativeItem>(canvas->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasFocus());
+
+ delete canvas;
}
void tst_QDeclarativeItem::smooth()
@@ -265,6 +267,8 @@ void tst_QDeclarativeItem::smooth()
QCOMPARE(spy.count(),2);
item->setSmooth(false);
QCOMPARE(spy.count(),2);
+
+ delete item;
}
void tst_QDeclarativeItem::clip()
@@ -288,6 +292,8 @@ void tst_QDeclarativeItem::clip()
QCOMPARE(spy.count(),2);
item->setClip(false);
QCOMPARE(spy.count(),2);
+
+ delete item;
}
void tst_QDeclarativeItem::mapCoordinates()
@@ -335,6 +341,8 @@ void tst_QDeclarativeItem::mapCoordinates()
QVERIFY(QMetaObject::invokeMethod(root, "checkMapAFromInvalid",
Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, x), Q_ARG(QVariant, y)));
QVERIFY(result.toBool());
+
+ delete canvas;
}
void tst_QDeclarativeItem::mapCoordinates_data()