no need to lock SolarMutex over the whole method here

Change-Id: Ifcac67c0f4e149fe7e1d923d7efede9552b034a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146308
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2023-01-29 18:03:48 +00:00
committed by Noel Grandin
parent 6a26d47a79
commit ec4babad02
+1 -1
View File
@@ -2375,9 +2375,9 @@ public:
virtual void SAL_CALL documentEventOccured( const document::DocumentEvent& rEvent ) override
{
// early disposing on document event "OnUnload", to be sure Basic still exists when calling VBA "UserForm_Terminate"
SolarMutexGuard g;
if( rEvent.EventName == GlobalEventConfig::GetEventName( GlobalEventId::CLOSEDOC ) )
{
SolarMutexGuard g;
removeListener();
mbDisposed = true;
if ( mpUserForm )