diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2021-01-13 14:33:55 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-13 21:42:08 +0000 |
commit | e15d63baa34a586084f826093d6fd76278f5946d (patch) | |
tree | dbb7c5671fc92e8c3648bcf1c74fc2818fd9bd10 /dist/changes-5.4.2 | |
parent | 4b3417f0f41b6b62091c90ca35bbbed2b232c354 (diff) |
a11y: Do not cache classes that don't have a factory plugin
For Qt Widgets we thought it was a good idea to also store in the cache
if a class didn't have a factory plugin. This worked fine there, since
the number of QWidget classnames is quite limited (so the factory plugin
cache will soon reach a limit)
In QML however, classes are often suffixed with e.g. Button_QMLTYPE_123,
Button_QMLTYPE_124 etc.
This number suffix is just increased continuously. This could lead to that
the factory plugin cache will grow ad infinitum, which will cause
"memory leaks" in addition to a performance penalty.
Fixes: QTBUG-75106
Change-Id: I9ba189f989f0b90ab62a2c54a2e9230236a998d8
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 583668005d4d6399fc16d165dcb6a5af2b94323d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'dist/changes-5.4.2')
0 files changed, 0 insertions, 0 deletions