diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2017-10-27 10:53:51 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-05-04 10:56:35 +0000 |
commit | 1e9da7b3fd06dd3edd642d0f6479199b5174c928 (patch) | |
tree | 27e45a0ad41bd97a4bc68916afffbc9aa6d4a89e /src/gui/accessible/qaccessiblecache_p.h | |
parent | 10b3286313c78fa380b5fe676a7c14f3ae84f017 (diff) |
Accessibility: Fix leaking cached interfaces
When the application closes, we should clear the cache to not run into
memory sanitizers claiming that we leak.
Change-Id: Ibf9fcda107be6b7f3ed414d7651080aa1f61a3a5
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/gui/accessible/qaccessiblecache_p.h')
-rw-r--r-- | src/gui/accessible/qaccessiblecache_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/accessible/qaccessiblecache_p.h b/src/gui/accessible/qaccessiblecache_p.h index f054ee9678..a976277c1d 100644 --- a/src/gui/accessible/qaccessiblecache_p.h +++ b/src/gui/accessible/qaccessiblecache_p.h @@ -68,6 +68,7 @@ class Q_GUI_EXPORT QAccessibleCache :public QObject Q_OBJECT public: + ~QAccessibleCache() override; static QAccessibleCache *instance(); QAccessibleInterface *interfaceForId(QAccessible::Id id) const; QAccessible::Id idForInterface(QAccessibleInterface *iface) const; |