diff options
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(); } |