[Libreoffice-commits] core.git: editeng/source

Stephan Bergmann sbergman at redhat.com
Thu Jun 12 06:22:26 PDT 2014


 editeng/source/misc/unolingu.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5c961fa9ea771572c262fe06ced8e6bda42f60e8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jun 12 15:19:41 2014 +0200

    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

diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx
index c98718b..e9c087b 100644
--- a/editeng/source/misc/unolingu.cxx
+++ b/editeng/source/misc/unolingu.cxx
@@ -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;


More information about the Libreoffice-commits mailing list