diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-22 16:03:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-22 21:55:55 +0200 |
commit | 7354da6ccfd0492a3f38ff07ce65500ec9f727b7 (patch) | |
tree | 1f327b02f47a10f36893af68f90c88ccc230bd8e | |
parent | ff65c84450d29207f45354e363ce900dce0b6625 (diff) |
intermediate _disposing call doesn't exist anymore
Change-Id: Ifcc5142eaebae06634e1530abb1361cc123117f5
Reviewed-on: https://gerrit.libreoffice.org/62189
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | extensions/source/bibliography/loadlisteneradapter.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/extensions/source/bibliography/loadlisteneradapter.cxx b/extensions/source/bibliography/loadlisteneradapter.cxx index 7b5d4d61d29e..32ae7fff3888 100644 --- a/extensions/source/bibliography/loadlisteneradapter.cxx +++ b/extensions/source/bibliography/loadlisteneradapter.cxx @@ -94,16 +94,14 @@ namespace bib void SAL_CALL OComponentAdapterBase::disposing( const EventObject& ) { - if ( m_pListener ) + if (m_pListener) { // disconnect the listener - if ( m_pListener ) // may have been reset whilest calling into _disposing - m_pListener->setAdapter( nullptr ); + m_pListener->setAdapter( nullptr ); + m_pListener = nullptr; } - m_pListener = nullptr; m_bListening = false; - m_xComponent = nullptr; } |