• Gunnar Sletta's avatar
    Fix potential crash during shutdown for QQuickWindows · 3f362cdf
    Gunnar Sletta authored
    
    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>
    3f362cdf