From 09974c595adf81fde90dfa27ccac771d1f0ecfff Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 20 Jul 2020 12:39:11 +0200 Subject: [PATCH] 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 --- lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 const&) { - return cppu::acquire(new Hyphenator()); + static rtl::Reference g_Instance(new Hyphenator()); + g_Instance->acquire(); + return static_cast(g_Instance.get()); }