Priority: P2: Important
Affects Version/s: None
Fix Version/s: None
Component/s: Quick: Core Declarative QML
It's very common to have ASAN report heap-use-after-frees for code that uses item change listeners. Debugging them (at least for me) typically involves a lot of effort, as it requires printing each and every listener added/updated/removed, and then finding which object or item that listener corresponds to.
It would be helpful to have some macro we could define that enables some form of safety check, such that a warning would be printed when a listener is about to be destroyed without first removing all of its listen "targets".
|For Gerrit Dashboard: QTBUG-99629|
|389010,3||Change behavior of and rename removeItemChangeListener||dev||qt/qtdeclarative||Status: NEW||0||0|
|388948,5||Remove addItemChangeListener in favor of updateOrAddItemChangeListener||dev||qt/qtdeclarative||Status: DEFERRED||-1||0|