Delete QQuickWindow's animator driver at the right time.
authorGunnar Sletta <gunnar@sletta.org>
Thu, 2 Jul 2015 13:54:43 +0000 (15:54 +0200)
committerLiang Qi <liang.qi@theqtcompany.com>
Sat, 4 Jul 2015 19:59:52 +0000 (19:59 +0000)
commit982fa2225b7d69181344a00816cad19042a922e6
tree3ccb505de40e103b48cbefcc85ed5ab76d5980c5
parenteeee9f1466ffaf17f81d635c2e43dca76ce5b021
Delete QQuickWindow's animator driver at the right time.

For the non-threaded renderloops, we there might be a timer firing
before the animationController is cleaned up through deleteLater()
which will then reference the deleted QQuickWindow. Rely instead on
direct and explicit cleanup at the right time in each render loop.

Change-Id: Id81daddae78ce3922d6a932fb21200f2dc7955bb
Task-number: QTBUG-33723
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
src/quick/items/qquickwindow.cpp
src/quick/scenegraph/qsgrenderloop.cpp
src/quick/scenegraph/qsgthreadedrenderloop.cpp
src/quick/scenegraph/qsgwindowsrenderloop.cpp