From 24c48fbcb845844aa93799a0e536e4b6d1ea9b8b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 19 Dec 2022 10:21:03 +0000 Subject: ofz: bad-casts at shutdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia8cdf5d446647e0f3d60c14e1aae315db63769c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144462 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- editeng/source/editeng/editeng.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editeng') diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index c8a66d0470a4..32fad4d8fc35 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -2625,9 +2625,14 @@ SfxItemPool& EditEngine::GetGlobalItemPool() if ( !pGlobalPool ) { pGlobalPool = CreatePool(); +#if defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) + // TerminateListener option not available, force it to leak + pGlobalPool->acquire(); +#else uno::Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create(comphelper::getProcessComponentContext()); uno::Reference< frame::XTerminateListener > xListener( new TerminateListener ); xDesktop->addTerminateListener( xListener ); +#endif } return *pGlobalPool; } -- cgit >distro/collabora/co-22.05 LibreOffice 界面翻译代码仓库文档基金会
aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')