Fix crash on QQmlEngine destruction.
authorRobin Burchell <robin.burchell@jollamobile.com>
Mon, 25 Nov 2013 15:15:58 +0000 (16:15 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 25 Nov 2013 19:04:48 +0000 (20:04 +0100)
commit222e06bf4ed509e72c1533cbe1d4859ca96933f3
treed171132d6a32a35d4f017536b661394529f1313b
parent3d1f850237d96280f4f820897c186845698bd17d
Fix crash on QQmlEngine destruction.

QQmlTypeLoader references QQmlImportDatabase in a thread, so change the
declaration order so QQmlTypeLoader is destroyed and its thread stopped
before QQmlImportDatabase is destroyed.

Change-Id: If1f8ef0a5ce56103a417ecfb6897d2c3b9c8d364
Done-with: Andrew den Exter <andrew.den.exter@jollamobile.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmlengine_p.h