diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-19 10:21:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-19 15:36:29 +0000 |
commit | 24c48fbcb845844aa93799a0e536e4b6d1ea9b8b (patch) | |
tree | 547e5a0052966926f05bc1e332943e324175d25d /editeng | |
parent | ea9938b0a63b25cbfdd575c1745f208d27660f20 (diff) |
ofz: bad-casts at shutdown
Change-Id: Ia8cdf5d446647e0f3d60c14e1aae315db63769c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144462
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editeng.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |