Fix crash tst_qqmllanguage
authorDominik Holland <dominik.holland@pelagicore.com>
Mon, 1 Jul 2013 20:28:06 +0000 (22:28 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 5 Sep 2013 08:05:24 +0000 (10:05 +0200)
qmlClearTypeRegistrations() shouldn't be called when instances of
QQmlEngine are still open. This can lead to unexpected behavior.

For the qmlClearTypeRegistrations() function there is separate
autotest

Task-number: QTBUG-32078
Change-Id: I32612bc82602593d902bbffc58911e427b50524f
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp

index fd35a5b..1ffaf80 100644 (file)
@@ -245,7 +245,6 @@ private:
 void tst_qqmllanguage::cleanupTestCase()
 {
     QVERIFY(QFile::remove(testFile(QString::fromUtf8("I18nType\303\201\303\242\303\243\303\244\303\245.qml"))));
-    qmlClearTypeRegistrations(); // Should not crash
 }
 
 void tst_qqmllanguage::insertedSemicolon_data()