[Libreoffice-commits] core.git: sc/source

Stephan Bergmann sbergman at redhat.com
Mon May 4 02:34:52 PDT 2015


 sc/source/ui/unoobj/funcuno.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 2aea886620138e63c271944232b507fb9fd7bd9d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon May 4 11:34:07 2015 +0200

    Ensure listener removal is done with SolarMutex locked
    
    Change-Id: Ie2d97a3e3555d072bc963238b6421f80fcfda903

diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx
index edd4898..00d9e79 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 )


More information about the Libreoffice-commits mailing list