diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-17 15:18:10 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-17 15:24:19 +0200 |
commit | 8e1ad966262932516b3368d9b5c44becb29524d4 (patch) | |
tree | 4dbee378e3376712011631734195886fb41404e2 /accessibility/source/extended | |
parent | 0f5b7dfea974c21b48843c3cbf7fdf344ad54a3a (diff) |
Some missing SolarMutexGuard around VclPtr acquire/release
At least OutputDevice::acquire/release use a plain unguarded int and ++, --, so
apparently rely on the SolarMutex being locked whenever they are called. Fixed
those places that caused "make check" to fail for me when temporarily adding
DBG_TESTSOLARMUTEX() to OutputDevice::acquire/release. (A recurring pattern is
that a class fails to ensure the SolarMutex is locked around the destruction of
non-null VclPtr members.)
Change-Id: I77cba6f3908f2de1b516ce28f1c3c43b3f57a9c5
Diffstat (limited to 'accessibility/source/extended')
-rw-r--r-- | accessibility/source/extended/listboxaccessible.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accessibility/source/extended/listboxaccessible.cxx b/accessibility/source/extended/listboxaccessible.cxx index e02a1d638225..e7e428c376f3 100644 --- a/accessibility/source/extended/listboxaccessible.cxx +++ b/accessibility/source/extended/listboxaccessible.cxx @@ -19,6 +19,7 @@ #include <accessibility/extended/listboxaccessible.hxx> #include <svtools/treelistbox.hxx> +#include <vcl/svapp.hxx> namespace accessibility { @@ -55,6 +56,7 @@ namespace accessibility void ListBoxAccessibleBase::disposing() { + SolarMutexGuard g; if ( m_pWindow ) m_pWindow->RemoveEventListener( LINK( this, ListBoxAccessibleBase, WindowEventListener ) ); m_pWindow = NULL; |