summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/ole/servprov.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/ole/servprov.cxx b/extensions/source/ole/servprov.cxx
index 4cf615a0b778..10ce1843d45d 100644
--- a/extensions/source/ole/servprov.cxx
+++ b/extensions/source/ole/servprov.cxx
@@ -476,8 +476,8 @@ OleServer::OleServer( const Reference<XMultiServiceFactory>& smgr):
(void) provideInstance( [&]
{
- const Reference<XInterface> xWordGlobals = m_smgr->createInstance("ooo.vba.word.Globals");
- xWordGlobals->acquire();
+ // We want just one SwVbaGlobals for all Automation clients
+ static const Reference<XInterface> xWordGlobals = m_smgr->createInstance("ooo.vba.word.Globals");
const Reference<ooo::vba::XHelperInterface> xHelperInterface(xWordGlobals, UNO_QUERY);
Any aApplication = xHelperInterface->Application();
Reference<XInterface> xApplication;