aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlworkerscript/qquickworkerscript.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2025-06-12 15:27:39 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2025-06-14 04:36:10 +0000
commit8b2e8b47552cb23a06c38088c83c2130bb60decc (patch)
tree58c8ee55fe2053293e54b5f106a642bb46e15f49 /src/qmlworkerscript/qquickworkerscript.cpp
parent8db7777714a26b5b8bd052642c690bb79f8a3ecf (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.8 6.5 Fixes: QTBUG-137561 Change-Id: I76ff1ff8bc7d563133d7bb9cd8b7bee76d6cec9b Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> (cherry picked from commit b6d533aa2da05b50f409f3ce65f82890c51f38cf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 735e902866a1d76027a9465396f02f7c594135b8)
Diffstat (limited to 'src/qmlworkerscript/qquickworkerscript.cpp')
0 files changed, 0 insertions, 0 deletions