summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-11-12 13:02:13 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2018-11-12 15:37:26 +0100
commitc846e85f03b635c88e043166a352a42eeae39304 (patch)
treeb6c69cc6f982e1b4f6f6f741eb0dc00e651ffd59 /scripting
parent88f55bea92cee46738b7fe6f206f0597edfadce5 (diff)
Guard listener cleanup of BasicProviderImpl
Otherwise JunitTest_sfx2_complex dbgutil asserts especially on Windows with: ucrtbased!get_wide_winmain_command_line+0x296 ucrtbased!get_wide_winmain_command_line+0xe4 ucrtbased!wassert+0x1a vcllo!ImplDbgTestSolarMutex+0x43 tllo!DbgTestSolarMutex+0x11d svllo!SfxBroadcaster::RemoveListener+0x2e svllo!SfxListener::~SfxListener+0x8f basprovlo!basprov::BasicProviderImpl::~BasicProviderImpl+0x8f ... Change-Id: Ia183436a92bc70ed5208364987b3e97e27b5bd6e Reviewed-on: https://gerrit.libreoffice.org/63289 Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Tested-by: Jenkins
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/basprov/basprov.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripting/source/basprov/basprov.cxx b/scripting/source/basprov/basprov.cxx
index 6c856d5a5a24..1055b57bd7d0 100644
--- a/scripting/source/basprov/basprov.cxx
+++ b/scripting/source/basprov/basprov.cxx
@@ -101,6 +101,8 @@ namespace basprov
BasicProviderImpl::~BasicProviderImpl()
{
+ SolarMutexGuard aGuard;
+ EndListeningAll();
}