diff options
author | Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> | 2009-09-17 22:14:16 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-09-25 10:49:20 (GMT) |
commit | 71c811ac3c1954c78e09dd16b661ea4c54afb140 (patch) | |
tree | 7349b03a633aac37a07130ccebefa439377c7605 /tests/auto/qgraphicsanchorlayout | |
parent | 44522ab013d4c1157a3b1ed4df28060ad49b5b24 (diff) | |
download | Qt-71c811ac3c1954c78e09dd16b661ea4c54afb140.zip Qt-71c811ac3c1954c78e09dd16b661ea4c54afb140.tar.gz Qt-71c811ac3c1954c78e09dd16b661ea4c54afb140.tar.bz2 |
QGraphicsAnchorLayout: Removing memory leaks on anchor tests
Signed-off-by: Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
Reviewed-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Diffstat (limited to 'tests/auto/qgraphicsanchorlayout')
-rw-r--r-- | tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp b/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp index 2c4a253..08baf26 100644 --- a/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp +++ b/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp @@ -193,6 +193,8 @@ void tst_QGraphicsAnchorLayout::simple_center() QSizeF layoutMaximumSize = l->effectiveSizeHint(Qt::MaximumSize); QCOMPARE(layoutMaximumSize, QSizeF(200, 20)); + + delete p; } void tst_QGraphicsAnchorLayout::simple_semifloat() @@ -240,6 +242,8 @@ void tst_QGraphicsAnchorLayout::simple_semifloat() QSizeF layoutMaximumSize = l->effectiveSizeHint(Qt::MaximumSize); QCOMPARE(layoutMaximumSize, QSizeF(200, 20)); + + delete p; } void tst_QGraphicsAnchorLayout::layoutDirection() @@ -286,6 +290,9 @@ void tst_QGraphicsAnchorLayout::layoutDirection() view->show(); QCOMPARE(checkReverseDirection(p), true); + + delete p; + delete view; } void tst_QGraphicsAnchorLayout::diagonal() @@ -985,6 +992,8 @@ void tst_QGraphicsAnchorLayout::setSpacing() QCOMPARE(b->geometry(), QRectF(24, 0, 20, 20)); QCOMPARE(c->geometry(), QRectF(0, 20, 44, 20)); + delete p; + delete view; } /*! @@ -1067,6 +1076,7 @@ void tst_QGraphicsAnchorLayout::hardComplexS60() QSizeF layoutMaximumSize = l->effectiveSizeHint(Qt::MaximumSize); QCOMPARE(layoutMaximumSize, QSizeF(240, 40)); + delete p; } void tst_QGraphicsAnchorLayout::stability() @@ -1281,6 +1291,8 @@ void tst_QGraphicsAnchorLayout::conflicts() //QEXPECT_FAIL("", "The constraints are just within their bounds in order to be feasible", Continue); //a->setMinimumSize(QSizeF(30,10)); //QCOMPARE(l->hasConflicts(), false); + + delete p; } QTEST_MAIN(tst_QGraphicsAnchorLayout) |