summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-09-12 14:59:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-09-13 09:45:44 +0200
commitfa0e4fa0154b15fa1c04495562d08b4490ec984b (patch)
treeadd3105c3bc48916dfba2030715a4963c86ae3b5 /extensions
parent7bbe6602552fc7691bbfee8e9e31489fbd906140 (diff)
loplugin:unodispose in editeng..extensions
Change-Id: I6545cf93b0a101d3a3eea0abe9c1732fcf3dc2d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156850 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/framectr.cxx3
-rw-r--r--extensions/source/propctrlr/genericpropertyhandler.cxx17
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx3
-rw-r--r--extensions/source/propctrlr/propertyhandler.cxx17
-rw-r--r--extensions/source/propctrlr/sqlcommanddesign.cxx2
5 files changed, 40 insertions, 2 deletions
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx
index 9159e001eae0..758c8b3484c2 100644
--- a/extensions/source/bibliography/framectr.cxx
+++ b/extensions/source/bibliography/framectr.cxx
@@ -228,12 +228,15 @@ void BibFrameController_Impl::dispose()
if (xFrame.is())
xFrame->removeFrameActionListener( m_xImpl );
+ m_xFrame.clear();
aObject.Source = static_cast<XController*>(this);
m_xImpl->aLC.disposeAndClear(aObject);
m_xDatMan.clear();
m_aStatusListeners.clear();
m_xLastQueriedFocusWin.clear();
+ m_xWindow.clear();
+ m_xImpl.clear();
}
void BibFrameController_Impl::addEventListener( const uno::Reference< lang::XEventListener > & aListener )
diff --git a/extensions/source/propctrlr/genericpropertyhandler.cxx b/extensions/source/propctrlr/genericpropertyhandler.cxx
index 54bfb31de359..cf359bc152d8 100644
--- a/extensions/source/propctrlr/genericpropertyhandler.cxx
+++ b/extensions/source/propctrlr/genericpropertyhandler.cxx
@@ -605,7 +605,22 @@ namespace pcr
// at this handler instance
}
- IMPLEMENT_FORWARD_XCOMPONENT( GenericPropertyHandler, GenericPropertyHandler_Base );
+ void SAL_CALL GenericPropertyHandler::dispose( )
+ {
+ GenericPropertyHandler_Base::WeakComponentImplHelperBase::dispose();
+ m_xComponentIntrospectionAccess.clear();
+ m_xComponent.clear();
+ m_xTypeConverter.clear();
+ m_xPropertyState.clear();
+ }
+ void SAL_CALL GenericPropertyHandler::addEventListener( const css::uno::Reference< css::lang::XEventListener >& Listener )
+ {
+ GenericPropertyHandler_Base::WeakComponentImplHelperBase::addEventListener( Listener );
+ }
+ void SAL_CALL GenericPropertyHandler::removeEventListener( const css::uno::Reference< css::lang::XEventListener >& Listener )
+ {
+ GenericPropertyHandler_Base::WeakComponentImplHelperBase::removeEventListener( Listener );
+ }
} // namespace pcr
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index 01a0395594f5..836f5844e38d 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -490,6 +490,9 @@ namespace pcr
m_aInspectedObjects.clear();
impl_bindToNewModel_nothrow( nullptr );
+ m_xModel.clear();
+ m_xInteractiveHandler.clear();
+ m_xFrame.clear();
}
void SAL_CALL OPropertyBrowserController::addEventListener( const Reference< XEventListener >& _rxListener )
diff --git a/extensions/source/propctrlr/propertyhandler.cxx b/extensions/source/propctrlr/propertyhandler.cxx
index 53cf29fc6f4c..1c58a6202b74 100644
--- a/extensions/source/propctrlr/propertyhandler.cxx
+++ b/extensions/source/propctrlr/propertyhandler.cxx
@@ -242,7 +242,22 @@ namespace pcr
return true;
}
- IMPLEMENT_FORWARD_XCOMPONENT( PropertyHandler, PropertyHandler_Base )
+ void SAL_CALL PropertyHandler::dispose( )
+ {
+ PropertyHandler_Base::WeakComponentImplHelperBase::dispose();
+ m_xComponent.clear();
+ m_xComponentPropertyInfo.clear();
+ m_xTypeConverter.clear();
+ }
+ void SAL_CALL PropertyHandler::addEventListener( const css::uno::Reference< css::lang::XEventListener >& Listener )
+ {
+ PropertyHandler_Base::WeakComponentImplHelperBase::addEventListener( Listener );
+ }
+ void SAL_CALL PropertyHandler::removeEventListener( const css::uno::Reference< css::lang::XEventListener >& Listener )
+ {
+ PropertyHandler_Base::WeakComponentImplHelperBase::removeEventListener( Listener );
+ }
+
void SAL_CALL PropertyHandler::disposing()
{
diff --git a/extensions/source/propctrlr/sqlcommanddesign.cxx b/extensions/source/propctrlr/sqlcommanddesign.cxx
index 458dbd83153a..d98b2a569234 100644
--- a/extensions/source/propctrlr/sqlcommanddesign.cxx
+++ b/extensions/source/propctrlr/sqlcommanddesign.cxx
@@ -163,6 +163,8 @@ namespace pcr
m_xConnection.clear();
m_xContext.clear();
m_xORB.clear();
+ m_xDesigner.clear();
+ m_xObjectAdapter.clear();
}