aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2025-06-12 15:27:39 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-06-13 22:58:43 +0200
commitb6d533aa2da05b50f409f3ce65f82890c51f38cf (patch)
treee30f52db19004169fc1701894a2316915701edf4 /src/qml/jsruntime/qv4script.cpp
parent3759d323d32843d5005152068159f336adf0ec64 (diff)
ColorPicker: remove handle as a listener during destruction
Children get destroyed before their parents, and objects notify listeners when they get destroyed. If a child is a listener on a parent, then this results in a (partially) destroyed listener object being notified, resulting in UB and - fortunately - test-breaking warnings. The handle is (typically) a child of the dialog, and added as a listener for implicit size changes when set. Explicitly remove it in the destructor of QQuickAbstractColorPicker, before destruction of the object tree. Pick-to: 6.10 6.9 6.8 6.5 Fixes: QTBUG-137561 Change-Id: I76ff1ff8bc7d563133d7bb9cd8b7bee76d6cec9b Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
0 files changed, 0 insertions, 0 deletions