diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-12-01 13:59:47 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-01 15:05:14 +0100 |
commit | 8d7daf8f0cbabbc61657af8ff72731ae99895527 (patch) | |
tree | 35e6d63d238f3d86d61993493f5663d462f48845 /tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp | |
parent | 413bbeb9358cc1c908c97158ad82154b7fdf6b20 (diff) |
Delete created objects
This eliminates "leak" warnings that were generated when the test
exited.
Change-Id: Ia186241c05c28a6e5eb7b6b431e084f95f5934be
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp b/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp index c6a1e0aeac..2535f89030 100644 --- a/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp +++ b/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp @@ -1278,6 +1278,8 @@ void tst_qdeclarativestates::reset() QCOMPARE(image->width(), 20.0); QCOMPARE(image->height(), qreal(20.)); + + delete rect; } void tst_qdeclarativestates::illegalObjectCreation() @@ -1335,6 +1337,8 @@ void tst_qdeclarativestates::urlResolution() QCOMPARE(image1->source(), resolved); QCOMPARE(image2->source(), resolved); QCOMPARE(image3->source(), resolved); + + delete rect; } void tst_qdeclarativestates::unnamedWhen() |