From a4faad707c7fb27884fff5f20e5797b160d4f320 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 27 Jan 2015 21:33:31 +0100 Subject: tdf#76174: basic: lock SolarMutex in BasicScriptListener_Impl ... before calling into BASIC. Change-Id: I51a59fe5ca9b15ff7ec509c052964523d87a9790 --- basic/source/classes/eventatt.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'basic/source/classes') diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx index 943d96d65aa6..e67f5b3c7775 100644 --- a/basic/source/classes/eventatt.cxx +++ b/basic/source/classes/eventatt.cxx @@ -48,7 +48,7 @@ #include #include - +#include #include #include #include @@ -161,12 +161,16 @@ public: // Methods XAllListener void BasicScriptListener_Impl::firing( const ScriptEvent& aScriptEvent ) throw ( RuntimeException, std::exception ) { + SolarMutexGuard g; + firing_impl( aScriptEvent, NULL ); } Any BasicScriptListener_Impl::approveFiring( const ScriptEvent& aScriptEvent ) throw ( InvocationTargetException, RuntimeException, std::exception ) { + SolarMutexGuard g; + Any aRetAny; firing_impl( aScriptEvent, &aRetAny ); return aRetAny; -- cgit