diff options
author | Jan Arve Sæther <[email protected]> | 2020-09-22 17:39:58 +0200 |
---|---|---|
committer | Jan Arve Sæther <[email protected]> | 2021-02-02 14:42:04 +0100 |
commit | bb2c3bfa4f4d001ec39d54d038943f9533f4c952 (patch) | |
tree | a70989b8d6d376ee99fffaf3a07f0c0c12fbb238 /src/qml/jsruntime/qv4variantobject.cpp | |
parent | 1cb0e3dc5508359f5fc79eda79964db4ef8882c9 (diff) |
QQmlProperty: Guard QQmlContextData with QQmlGuardedContextData
Some animation classes store the property to animate in a
QQmlProperty.
In some cases (e.g. ListView delegates), the item that is animated
(and therefore the context) might get destroyed while the animation
is running. And since the QQmlContextData in QQmlProperty was not
guarded, it could sometimes cause a access violation crash as the
task demonstrates.
Fixes: QTBUG-86567
Change-Id: I2c8c4f0dca8029887702adeae542eadc47451f60
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4variantobject.cpp')
0 files changed, 0 insertions, 0 deletions