aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/src/javascript/hostenvironment.qdoc
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2016-07-25 16:07:16 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-08-05 18:55:39 +0000
commit68bfc9332cd65c1eb88d1ec87164447b0db43237 (patch)
treec668872cf02f9671fd25c64e916733e8b9ccb93d /src/qml/doc/src/javascript/hostenvironment.qdoc
parentff645deb25c18eeae3d248a6a60bc2954129ee28 (diff)
Fix crash with Component.onDestruction
A call to a handler of Component.onDestruction may end up causing WeakValues such as QQmlData::jsWrapper to be set again, even though they've been set to undefined in an earlier iteration of the loop that walks through the weak references. That in turn may result in invalid object references to objects that are scheduled for destruction by the collector. So after calling all destroy handlers for QObjects, reset all of the weak values again. Task-number: QTBUG-54939 Change-Id: I00ebabb76274e296fb1bd90d8d3e21dbbb920b57 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/doc/src/javascript/hostenvironment.qdoc')
0 files changed, 0 insertions, 0 deletions