diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-04 11:34:07 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-04 11:34:23 +0200 |
commit | 2aea886620138e63c271944232b507fb9fd7bd9d (patch) | |
tree | 88d3412721218d02b2b5fecb52e9420873da613e /sc | |
parent | 25b5e3914d42f776ae0925a3d2bff3f159c07b00 (diff) |
Ensure listener removal is done with SolarMutex locked
Change-Id: Ie2d97a3e3555d072bc963238b6421f80fcfda903
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/funcuno.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx index edd4898a5bc5..00d9e7951984 100644 --- a/sc/source/ui/unoobj/funcuno.cxx +++ b/sc/source/ui/unoobj/funcuno.cxx @@ -185,6 +185,11 @@ ScFunctionAccess::ScFunctionAccess() : ScFunctionAccess::~ScFunctionAccess() { delete pOptions; + { + // SfxBroadcaster::RemoveListener checks DBG_TESTSOLARMUTEX(): + SolarMutexGuard g; + EndListeningAll(); + } } void ScFunctionAccess::Notify( SfxBroadcaster&, const SfxHint& rHint ) |