lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 09974c595adf81fde90dfa27ccac771d1f0ecfff Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Mon Jul 20 12:39:11 2020 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Jul 20 22:00:09 2020 +0200 this should be a single-instance component regression from commit 3fbadfa1ad41a3477804c592e06caec708c05218 lingucomponent: create instances with uno constructors Change-Id: Ie53c56a88dc1c15178219b0098803586164837da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99038 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx index b50e0048689e..8c7d09ac66e6 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx @@ -803,7 +803,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* lingucomponent_Hyphenator_get_implementation( css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(new Hyphenator()); + static rtl::Reference<Hyphenator> g_Instance(new Hyphenator()); + g_Instance->acquire(); + return static_cast<cppu::OWeakObject*>(g_Instance.get()); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits