diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-29 13:47:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-30 09:09:12 +0200 |
commit | 4e9e9b796bf597a7ceedb608e3fbb0c1480b0633 (patch) | |
tree | dfd6606b2fd6a2d269ee14f6bfb47b94e7453bed /svx | |
parent | 1d641424d2591c3e221d0bd6a203f46e5c4352fe (diff) |
don't check isDisposed inside dispose()
my fault, from a recent commit. besides defeating the dispose(), it
should also be checked from the call sites.
Change-Id: Ia09580d4224bcf78e5684015c747105fa6606878
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116383
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index d631d87eef58..ab8f128a7b29 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -751,16 +751,13 @@ DbGridControl::~DbGridControl() void DbGridControl::dispose() { - if (!isDisposed()) - { - RemoveColumns(); + RemoveColumns(); - m_bWantDestruction = true; - osl::MutexGuard aGuard(m_aDestructionSafety); - if (m_pFieldListeners) - DisconnectFromFields(); - m_pCursorDisposeListener.reset(); - } + m_bWantDestruction = true; + osl::MutexGuard aGuard(m_aDestructionSafety); + if (m_pFieldListeners) + DisconnectFromFields(); + m_pCursorDisposeListener.reset(); if (m_nDeleteEvent) Application::RemoveUserEvent(m_nDeleteEvent); |