Fix crash-on-exit in qmlscene
authorMorten Sorvig <morten.sorvig@nokia.com>
Tue, 16 Aug 2011 09:22:55 +0000 (11:22 +0200)
committerGunnar Sletta <gunnar.sletta@nokia.com>
Wed, 17 Aug 2011 05:25:54 +0000 (07:25 +0200)
commit96348d4146a3faac194f18ceb251f3b0252f6a77
tree2e0c4f2abbdb81454f08956619ae10d0e8c314c9
parentf9949f501890a7f8289fcbda85d3a4085bdbb21a
Fix crash-on-exit in qmlscene

Add 0-pointer check to the renderThread access
in maybeUpdate(), which is in some cases called
from ~QSGCanvas() after the thread has been deleted.
(the call happens as a part of SGRootItem destruction.)

Change-Id: Icbcc0d7ad9af54d24ca99f254646b636c2eb9ebb
Reviewed-on: http://codereview.qt.nokia.com/2995
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/declarative/items/qsgcanvas.cpp