Fix crash when writing property after engine deletion
authorChris Adams <christopher.adams@nokia.com>
Mon, 12 Mar 2012 01:54:11 +0000 (11:54 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 13 Mar 2012 04:13:50 +0000 (05:13 +0100)
commitfa9fcf2fb259b1b3eb09e0c853075ca328e930c5
tree0f323769275439b29ed22e1cde38ae4a1cf65865
parent340c479bb17c8c14013cedd7c8eece30bf206c89
Fix crash when writing property after engine deletion

Previously, the engine pointer stored in a QQmlProperty could be
stale due to engine deletion.  This commit ensures we guard that
pointer.

Also reverts cbb7f8b10e99fad675839d7625d3236ed67b3e01

Task-number: QTBUG-24734
Change-Id: I5349c51fbd19fa46a8710280173c1d224358b96e
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/qml/qqmlproperty_p.h
tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp