summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeworkerscript
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/qdeclarativeworkerscript
parent87628252d721d4f8cf6963e5f20a02a56bd70f9a (diff)
downloadQt-a7b46bda37a428ae2e5554aa8e58469c92b310a9.zip
Qt-a7b46bda37a428ae2e5554aa8e58469c92b310a9.tar.gz
Qt-a7b46bda37a428ae2e5554aa8e58469c92b310a9.tar.bz2
Fix test leaks
Diffstat (limited to 'tests/auto/declarative/qdeclarativeworkerscript')
-rw-r--r--tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp b/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp
index 9957b50..56e906e 100644
--- a/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp
+++ b/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp
@@ -99,6 +99,7 @@ void tst_QDeclarativeWorkerScript::source()
QCOMPARE(item->source(), source);
qApp->processEvents();
+ delete item;
}
void tst_QDeclarativeWorkerScript::source_data()
@@ -125,6 +126,7 @@ void tst_QDeclarativeWorkerScript::messaging()
QCOMPARE(mo->property(mo->indexOfProperty("response")).read(worker).value<QVariant>(), value);
qApp->processEvents();
+ delete item;
}
void tst_QDeclarativeWorkerScript::messaging_data()
@@ -161,6 +163,7 @@ void tst_QDeclarativeWorkerScript::messaging_sendQObjectList()
QCOMPARE(result, (QVariantList() << QVariant() << QVariant() << QVariant()));
qApp->processEvents();
+ delete item;
}
void tst_QDeclarativeWorkerScript::messaging_sendJsObject()
@@ -180,6 +183,7 @@ void tst_QDeclarativeWorkerScript::messaging_sendJsObject()
QVERIFY(result.toBool());
qApp->processEvents();
+ delete item;
}
QTEST_MAIN(tst_QDeclarativeWorkerScript)