summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-12-16 17:06:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-12-16 17:14:35 +0100
commitc5cf78e1529970c04e1999e1f96f3e374ecd211e (patch)
tree300f2baaf448ccf3fad8b4bb2864c3c2ca45d9f0 /vcl
parent9bdfd1fa4dde2f4901900f7447b588c2640ff3f4 (diff)
Properly join spawned GrammarCheckingIterator thread.
It was still running during shutdown of sw_complex's checkFlies test, causing problems. For this to work, Desktop::DeInit needs to be called with SolarMutex unlocked, which looks like the right way, anyway. Hopefully it does not unearth another round of bugs...
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/svmain.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index 5ab01b9ca3e6..cf98fb8a0b6a 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -489,10 +489,14 @@ void DeInitVCL()
pSVData->maAppData.mxMSF.clear();
if( pSVData->mpApp )
+ {
+ sal_uLong nCount = Application::ReleaseSolarMutex();
// call deinit to deinitialize application class
// soffice/sfx implementation disposes the global service manager
// Warning: After this call you can't call uno services
pSVData->mpApp->DeInit();
+ Application::AcquireSolarMutex(nCount);
+ }
if ( pSVData->maAppData.mpSettings )
{