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

Stephan Bergmann sbergman at redhat.com
Tue Oct 18 09:05:02 UTC 2016


 sfx2/source/appl/appdispatchprovider.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c5c24f2035ef5941e83f7f0b15cb000f806983cd
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Oct 18 11:03:42 2016 +0200

    Lock SolarMutex in SfxAppDispatchProvider::queryDispatch
    
    ...which can be called remotely via UNO, as happens during JunitTest_sfx2_unoapi
    
    Change-Id: I9dbf83f9985124ccb84f33cdd30ec1225a4f183d

diff --git a/sfx2/source/appl/appdispatchprovider.cxx b/sfx2/source/appl/appdispatchprovider.cxx
index cc947c5..c425d9d 100644
--- a/sfx2/source/appl/appdispatchprovider.cxx
+++ b/sfx2/source/appl/appdispatchprovider.cxx
@@ -132,6 +132,8 @@ Reference < XDispatch > SAL_CALL SfxAppDispatchProvider::queryDispatch(
     const OUString& /*sTargetFrameName*/,
     FrameSearchFlags /*eSearchFlags*/ ) throw( RuntimeException, std::exception )
 {
+    SolarMutexGuard guard;
+
     sal_uInt16                  nId( 0 );
     bool                bMasterCommand( false );
     Reference < XDispatch > xDisp;


More information about the Libreoffice-commits mailing list