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

New commits:
commit 2aea886620138e63c271944232b507fb9fd7bd9d
Author: Stephan Bergmann <sberg...@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 )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to