Fix leak-on-exit of QSGRenderLoop::s_instance
authorAlex Montgomery <apmontgomery@gmail.com>
Wed, 18 Dec 2013 23:25:36 +0000 (15:25 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 28 Jan 2014 21:43:38 +0000 (22:43 +0100)
commite13547c595913c58e6bd6a5ed80fdc729fae7d47
treec2b7432be8825c9588e3ce4233269daed0e80076
parenta1b6db4765d89b0081788e98dcdfdba5ed7fa121
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>
src/quick/scenegraph/qsgrenderloop.cpp
src/quick/scenegraph/qsgrenderloop_p.h
tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp
tests/auto/quick/nodes/tst_nodestest.cpp