diff options
-rw-r--r-- | framework/source/services/desktop.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index 2f3ffe8c2a56..c892c6eb7a9a 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -322,11 +322,12 @@ sal_Bool SAL_CALL Desktop::terminate() // The clipboard listener needs to be the first. It can create copies of the // existing document which needs basically all the available infrastructure. - impl_sendTerminateToClipboard(); - - impl_sendNotifyTerminationEvent(); { - SolarMutexGuard aGuard; + SolarMutexResettableGuard aGuard; + impl_sendTerminateToClipboard(); + aGuard.clear(); + impl_sendNotifyTerminationEvent(); + aGuard.reset(); Scheduler::ProcessEventsToIdle(); } |