aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp
diff options
context:
space:
mode:
authorAlex Montgomery <apmontgomery@gmail.com>2013-12-18 15:25:36 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-28 22:43:38 +0100
commite13547c595913c58e6bd6a5ed80fdc729fae7d47 (patch)
treec2b7432be8825c9588e3ce4233269daed0e80076 /tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp
parenta1b6db4765d89b0081788e98dcdfdba5ed7fa121 (diff)
Fix leak-on-exit of QSGRenderLoop::s_instance
s_instance is created with new and never deleted which causes several destructors to never be called. Task-number: QTBUG-35731 Change-Id: Icccb19186958f8bb74c5fd2b4b41165255debc46 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp')
-rw-r--r--tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp b/tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp
index e44d5aa8d5..95ca8b5c94 100644
--- a/tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp
+++ b/tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp
@@ -67,6 +67,7 @@ void tst_QQMLTypeLoader::testLoadComplete()
QTRY_VERIFY(rootObject != 0);
QTRY_COMPARE(rootObject->property("created").toInt(), 2);
QTRY_COMPARE(rootObject->property("loaded").toInt(), 2);
+ delete window;
}
QTEST_MAIN(tst_QQMLTypeLoader)