diff -r ef0373b55136 -r 758a864f9613 tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp --- a/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp Fri Sep 17 08:34:18 2010 +0300 +++ b/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp Mon Oct 04 01:19:32 2010 +0300 @@ -75,6 +75,7 @@ void childrenRect(); void childrenRectBug(); void childrenRectBug2(); + void childrenRectBug3(); void childrenProperty(); void resourcesProperty(); @@ -780,6 +781,17 @@ delete canvas; } +// QTBUG-12722 +void tst_QDeclarativeItem::childrenRectBug3() +{ + QDeclarativeView *canvas = new QDeclarativeView(0); + canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/childrenRectBug3.qml")); + canvas->show(); + + //don't crash on delete + delete canvas; +} + template T *tst_QDeclarativeItem::findItem(QGraphicsObject *parent, const QString &objectName) {