tools/source/misc/lazydelete.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fecf7a6424c39e3f047639797200b61db50d3f2d Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Wed Mar 26 08:05:34 2025 +0200 Commit: Noel Grandin <noelgran...@gmail.com> CommitDate: Wed Mar 26 14:34:27 2025 +0100 DeleteOnDeinitBase::gShutdown should be volatile because we are touching it from multiple threads Change-Id: I48f5f9c0dc5bb5365e8821259839eb88f8ba0887 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183319 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/tools/source/misc/lazydelete.cxx b/tools/source/misc/lazydelete.cxx index 1d441e432dce..f282cde696b4 100644 --- a/tools/source/misc/lazydelete.cxx +++ b/tools/source/misc/lazydelete.cxx @@ -24,7 +24,7 @@ namespace tools { static std::vector<tools::DeleteOnDeinitBase*> gDeinitDeleteList; -static bool gShutdown = false; +static volatile bool gShutdown = false; DeleteOnDeinitBase::~DeleteOnDeinitBase() { std::erase(gDeinitDeleteList, this); }