Missing SolarMutexGuard

...the non-mutex'ed access to the static LinguMgr members from other functions
makes it look like those are all assumed to be called with SolarMutex locked;
but that does not hold for calls to LinguMgrAppExitLstnr::disposing.

Change-Id: I225a9f7ace65774460502a4aa510abddd48d12ca
This commit is contained in:
Stephan Bergmann
2014-06-12 15:19:41 +02:00
parent db67702eb3
commit 5c961fa9ea

View File

@@ -45,6 +45,7 @@
#include <ucbhelper/commandenvironment.hxx>
#include <ucbhelper/content.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/svapp.hxx>
#include <tools/shl.hxx>
#include <linguistic/misc.hxx>
#include <editeng/eerdll.hxx>
@@ -490,6 +491,8 @@ public:
void LinguMgrExitLstnr::AtExit()
{
SolarMutexGuard g;
// release references
LinguMgr::xLngSvcMgr = 0;
LinguMgr::xSpell = 0;