Fix crash on QV8Engine destruction
authorJosh Faust <jfaust@suitabletech.com>
Fri, 7 Jun 2013 00:44:12 +0000 (17:44 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 30 Aug 2013 16:32:28 +0000 (18:32 +0200)
commit0a29a82dfb04bafc8408e6d1843fde588b3d1b95
tree9bb414edcb33884aaaf42a632e29f3cee38630b9
parenta166f7974b3fb24278ada361d538d66843807b4f
Fix crash on QV8Engine destruction

QObjects tracked by QV8Engine can end up causing bindings to execute
when the QV8Engine is being deleted, which can call through to
QV8Engine::fromVariant(). This change ensure that that is valid
while the QObjects are being destroyed.

Task-number: QTBUG-31555

Change-Id: Iaea402ff65993bb2322af403d3590653005e30fe
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/qml/qml/v8/qv8engine.cpp