aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/util
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2018-08-08 08:39:51 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-08-08 10:39:04 +0000
commit1c731335dcd90fd817180a623e489edcc31f5151 (patch)
tree322ce4147af82688e6a0eacda0b650712ae861ee /src/quick/scenegraph/util
parent78bad23258c725f9ad81f46f71895e863ce1a0d5 (diff)
Fix ASAN warnings about new-delete-size-mismatch
The optimization of allocating memory for a QML type along with its declarative data in one shot works well and has worked well for many years. However ASAN complains about it, because when the delete expression is called from _anywhere_ on for example a QQuickItem, the size returned by the virtual destructor and then passed to operator delete is less than what was allocated earlier (to include the declarative data structure). Fix this by providing an operator delete for the final QQmlElement class that we _do_ allocate, which is passed along by the virtual destructor. That operator ignores the size and thus silences ASAN. Task-number: QTBUG-58524 Change-Id: Ibb6120e7e07301bb4602130064c5157b21ec2202 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/quick/scenegraph/util')
0 files changed, 0 insertions, 0 deletions