diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-15 08:42:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-15 08:27:52 +0100 |
commit | 3a0c4574449fc2313306c4e0e39bb7416cc20657 (patch) | |
tree | 3b14e9141a5d880d00a8f510f59b6504a13fec44 /unotools | |
parent | a0000aa4c83768aee2b78182c1c40b6bdf810773 (diff) |
convert OSL_ASSERT to assert
and fix the one place triggering it
Change-Id: I87ec57c6a92ed89fdacfcb0d650525eaeaa266b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86822
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/misc/eventlisteneradapter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unotools/source/misc/eventlisteneradapter.cxx b/unotools/source/misc/eventlisteneradapter.cxx index c9f6b6f73ee9..d9736905de81 100644 --- a/unotools/source/misc/eventlisteneradapter.cxx +++ b/unotools/source/misc/eventlisteneradapter.cxx @@ -74,7 +74,8 @@ namespace utl { if (m_xComponent.is()) { - m_xComponent->removeEventListener(m_xKeepMeAlive); + if (m_xKeepMeAlive.is()) + m_xComponent->removeEventListener(m_xKeepMeAlive); m_xComponent.clear(); m_xKeepMeAlive.clear(); } |