summaryrefslogtreecommitdiff
path: root/include/svx/fmtools.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-06-16 16:52:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-06-16 17:09:55 +0100
commite841ed93d6c6d817be1f7fdc18ff971325c861cc (patch)
treec775549661ead5de870b11912a94500adab1a4b1 /include/svx/fmtools.hxx
parentee24e7f2b689bf0f63ba618fc7ee7ac6bc644172 (diff)
Resolves: tdf#82532 parent mutex dtored before child dtor uses it
Mutex belonged to DisposeListenerGridBridge which inherits from FmXDisposeListener, FmXDisposeListener dtor accesses a reference to the parent mutex in its dtor, but the mutex has been destroyed at this point. Move the mutex from parent to child. FWIW these classes are on the candidate list to merge. Change-Id: Ic639eaed97c2b0625c368ed249f09920af37f94e
Diffstat (limited to 'include/svx/fmtools.hxx')
-rw-r--r--include/svx/fmtools.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/svx/fmtools.hxx b/include/svx/fmtools.hxx
index e122243d4ac2..34dec03da81e 100644
--- a/include/svx/fmtools.hxx
+++ b/include/svx/fmtools.hxx
@@ -158,10 +158,9 @@ class SAL_WARN_UNUSED FmXDisposeListener
friend class FmXDisposeMultiplexer;
rtl::Reference<FmXDisposeMultiplexer> m_pAdapter;
- ::osl::Mutex& m_rMutex;
+ osl::Mutex m_aMutex;
public:
- FmXDisposeListener(::osl::Mutex& _rMutex) : m_rMutex(_rMutex) { }
virtual ~FmXDisposeListener();
virtual void disposing(const css::lang::EventObject& _rEvent, sal_Int16 _nId) throw( css::uno::RuntimeException ) = 0;