diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-03-05 02:52:06 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-03-05 02:52:06 (GMT) |
commit | a7b46bda37a428ae2e5554aa8e58469c92b310a9 (patch) | |
tree | 4bf2eba8eb28ceb5edf7837d1cb7aa83cd920d9e /tests/auto/declarative/qdeclarativeworkerscript | |
parent | 87628252d721d4f8cf6963e5f20a02a56bd70f9a (diff) | |
download | Qt-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.cpp | 4 |
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) |