Commit 3f362cdf authored by Gunnar Sletta's avatar Gunnar Sletta Committed by The Qt Project
Browse files

Fix potential crash during shutdown for QQuickWindows


The cleanup() function would deregister the render loop from all
windows the render loop had seen, but the render loop doesn't see
windows until the window gets a showEvent and for some implementations
it was removed as a result of hideEvent. So add explicit tracking to
QSGRenderLoop which is managed by QQuickWindow's constructor and
destructor. With this, we no longer need the lists from the
subclasses, so these functions are removed again.

Change-Id: I05e5507ad57e23c80bacd99752654cc7d0890dc1
Reviewed-by: default avatarPaul Olav Tvete <paul.tvete@digia.com>
parent d37b770a
Showing with 11 additions and 28 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment