aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4stringobject.cpp
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@qt.io>2023-09-13 11:57:22 +0200
committerAndy Nichols <andy.nichols@qt.io>2023-09-15 10:04:17 +0000
commit4e41739c5860befa6d4c5d8601661b1309799465 (patch)
treebb6cb473e8d53b7956d6d63d222ef694abf5f695 /src/qml/jsruntime/qv4stringobject.cpp
parentfa23aa04c4ffac98b954bd9ec14a0adbe57a1fb6 (diff)
Make sure to listen for itemDestroyed when using QQuickDeferredPointer
When using QQuickDeferredPointer for deferred properties in Qt Quick Controls, it is necessary to also implement the itemDestroyed virtual method because if the item pointed gets deleted the QQuickDeferredPointer reference will be a dangling pointer when cleanup occurs in the destructor. This patch is following the pattern laid out by QQuickControlsPrivate for handling its QQuickDeferredPointer members. This bug is exposed when aborting a component incubation for types that did not do this cleanup in the form of a segfault in the destructor of the offending class. Fixes: QTBUG-116828 Pick-to: 6.6 6.5 Change-Id: I6a486de74ee38ccdcaff6a31195ee389f51fc93c Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject.cpp')
0 files changed, 0 insertions, 0 deletions