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

New commits:
commit c5c24f2035ef5941e83f7f0b15cb000f806983cd
Author: Stephan Bergmann <sberg...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to