diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-23 13:44:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-23 16:04:32 +0200 |
commit | 1ed765c818af2186e459c5ad0eff24dc39a20d34 (patch) | |
tree | b3e623a9ca8b0d4eeafb0bbb35099ddb90ea08c7 /include | |
parent | d4bc98c5bf8d099ab1df32cc8ac30169ac537e62 (diff) |
tdf#155235 workaround gtk3 accessiblibility crashes on close
we are still working around the problem here, which is that various bit
are not firing accessibility events when their children change.
So clear the static map in comphelper on shutdown, to prevent crashes
resulting from objects being kept alive after vcl has shutdown
Change-Id: I3ae216b345a1bb4cb4e3fde3527e4d4aa5968f76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152161
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/accessibleeventnotifier.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/comphelper/accessibleeventnotifier.hxx b/include/comphelper/accessibleeventnotifier.hxx index 75828cda6319..77be52fb90d9 100644 --- a/include/comphelper/accessibleeventnotifier.hxx +++ b/include/comphelper/accessibleeventnotifier.hxx @@ -107,6 +107,9 @@ public: const TClientId _nClient, const css::accessibility::AccessibleEventObject& _rEvent ); + // to be called at application shutdown to clear the static map, so we don't get crashes on shutdown + static void shutdown(); + }; } // namespace comphelper |