From 0a575482d5583076ba0ce812cab6c32732b1c280 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 6 Jun 2014 15:02:21 +0200 Subject: Stop polish-and-sync timer when the window is destroyed The threaded render loop continues to run the polish-and-sync timer for ever in case the QQuickWindow is destroyed while the timer is active. Instead of pumping the timer events on the render thread for ever, the timer has to be killed somewhere. Change-Id: I8e458624e26ebfacb6cc69a4f2fbb3da57ae5e0e Reviewed-by: Gunnar Sletta --- src/quick/scenegraph/qsgthreadedrenderloop.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp index 0aa30280e5..ae8d135d83 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp +++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp @@ -1233,6 +1233,8 @@ bool QSGThreadedRenderLoop::event(QEvent *e) } if (w) polishAndSync(w); + else + killTimer(te->timerId()); } return true; } -- cgit v1.2.3