loplugin:unodispose in comphelper
Change-Id: I0f23916204fd6d96b2b1641effe693cb0764f630 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156848 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
b33c175233
commit
fdef35f01e
3 changed files with 5 additions and 0 deletions
|
@ -101,7 +101,10 @@ void OSelectionChangeMultiplexer::dispose()
|
|||
{
|
||||
Reference< XSelectionChangeListener> xPreventDelete(this);
|
||||
if(m_xSet.is())
|
||||
{
|
||||
m_xSet->removeSelectionChangeListener(xPreventDelete);
|
||||
m_xSet.clear();
|
||||
}
|
||||
}
|
||||
osl_atomic_decrement(&m_refCount);
|
||||
}
|
||||
|
|
|
@ -295,6 +295,7 @@ void comphelper::ConfigurationListener::dispose()
|
|||
listener->dispose();
|
||||
}
|
||||
maListeners.clear();
|
||||
mxConfig.clear();
|
||||
mbDisposed = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -216,6 +216,7 @@ void OLockListener::Dispose()
|
|||
return;
|
||||
|
||||
auto xInstance = std::move(m_xInstance);
|
||||
auto xApproval = std::move(m_xApproval);
|
||||
auto nMode = m_nMode;
|
||||
m_bDisposed = true;
|
||||
aGuard.unlock();
|
||||
|
|
Loading…
Reference in a new issue