Don't dereference null QQuickWindowPrivate.
authorSérgio Martins <sergio.martins@kdab.com>
Thu, 3 Jul 2014 12:44:41 +0000 (13:44 +0100)
committerSérgio Martins <sergio.martins@kdab.com>
Thu, 3 Jul 2014 19:10:08 +0000 (21:10 +0200)
commit8e866366e5ef3f77d19a0b9f8ca93dafd15e1e6a
treea0f05341fb66f87b600adeeb7f5d537f054889ec
parent2728460e62f8d4a5f7c3b884562aea9a526f9bb3
Don't dereference null QQuickWindowPrivate.

windowDestroyed() triggers a sendPostedEvent(DeferredDelete) to
cleanup GL resources. If the window was deleted through deleteLater()
it will also be deleted at this point.

Change-Id: I3b0cc0f36c4a543c5fbaa4af107dc4aa0c8b6725
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/quick/scenegraph/qsgrenderloop.cpp