summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/runtime/basrdll.cxx3
-rw-r--r--basic/source/sbx/sbxbase.cxx1
2 files changed, 3 insertions, 1 deletions
diff --git a/basic/source/runtime/basrdll.cxx b/basic/source/runtime/basrdll.cxx
index 9fd82145afd2..b18284607b01 100644
--- a/basic/source/runtime/basrdll.cxx
+++ b/basic/source/runtime/basrdll.cxx
@@ -66,6 +66,9 @@ BasicDLL::~BasicDLL()
{
osl::MutexGuard aGuard(BasicDLLImpl::getMutex());
const bool bLastRef = m_xImpl->GetRefCount() == 1;
+ if (bLastRef) {
+ BasicDLLImpl::BASIC_DLL->xSbxAppData->m_aGlobErr.clear();
+ }
m_xImpl.clear();
// only reset BASIC_DLL after the object had been destroyed
if (bLastRef)
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx
index e2010a600f39..c80b681c644d 100644
--- a/basic/source/sbx/sbxbase.cxx
+++ b/basic/source/sbx/sbxbase.cxx
@@ -46,7 +46,6 @@ SbxAppData::~SbxAppData()
SolarMutexGuard g;
pBasicFormater.reset();
- m_aGlobErr.clear();
// basic manager repository must be destroyed before factories
mrImplRepository.clear();
m_Factories.clear();