[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - accessibility/source connectivity/source sdext/source sd/source
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Mon Apr 12 20:54:20 UTC 2021
accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx | 2 +-
connectivity/source/cpool/ZConnectionPool.cxx | 2 +-
sd/source/ui/framework/module/SlideSorterModule.cxx | 4 ++++
sdext/source/presenter/PresenterCurrentSlideObserver.cxx | 3 +++
4 files changed, 9 insertions(+), 2 deletions(-)
New commits:
commit 47eaa8cf7d0f64c0deb3b0fa2e9f81ce83bb8b86
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Thu Apr 1 17:07:04 2021 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Mon Apr 12 22:53:47 2021 +0200
lok: remove event listener when disposing
In order to prevent that the event listener
holds the object reference count when removed,
ensure they are removed when disposing the object.
Change-Id: I7cb4cb7d87acfc9610c2498760ade531456fe22e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113493
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114020
Tested-by: Henry Castro <hcastro at collabora.com>
diff --git a/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx
index 1ff6fae2abd7..e9ca2b1f7b4b 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx
@@ -329,7 +329,7 @@ namespace accessibility
{
if ( _rSource.Source == mxParent )
{
- dispose();
+ dispose();
}
}
diff --git a/connectivity/source/cpool/ZConnectionPool.cxx b/connectivity/source/cpool/ZConnectionPool.cxx
index 7d05b6e0236b..4a56907a0c9c 100644
--- a/connectivity/source/cpool/ZConnectionPool.cxx
+++ b/connectivity/source/cpool/ZConnectionPool.cxx
@@ -189,7 +189,7 @@ void SAL_CALL OConnectionPool::disposing( const css::lang::EventObject& Source )
}
else
{
- m_xDriverNode.clear();
+ m_xDriverNode.clear();
}
}
diff --git a/sd/source/ui/framework/module/SlideSorterModule.cxx b/sd/source/ui/framework/module/SlideSorterModule.cxx
index 1aa96bd0b2d4..b6e9e658b099 100644
--- a/sd/source/ui/framework/module/SlideSorterModule.cxx
+++ b/sd/source/ui/framework/module/SlideSorterModule.cxx
@@ -237,6 +237,10 @@ void SAL_CALL SlideSorterModule::disposing()
{
if (mxConfigurationController.is())
{
+ uno::Reference<lang::XComponent> const xComponent(mxConfigurationController, UNO_QUERY);
+ if (xComponent.is())
+ xComponent->removeEventListener(this);
+
mxConfigurationController->removeConfigurationChangeListener(this);
mxConfigurationController = nullptr;
}
diff --git a/sdext/source/presenter/PresenterCurrentSlideObserver.cxx b/sdext/source/presenter/PresenterCurrentSlideObserver.cxx
index b7769219c7fe..0cd33d9c0beb 100644
--- a/sdext/source/presenter/PresenterCurrentSlideObserver.cxx
+++ b/sdext/source/presenter/PresenterCurrentSlideObserver.cxx
@@ -57,6 +57,9 @@ void SAL_CALL PresenterCurrentSlideObserver::disposing()
mxSlideShowController->removeSlideShowListener(static_cast<XSlideShowListener*>(this));
mxSlideShowController = nullptr;
}
+
+ if (mpPresenterController.is())
+ mpPresenterController->removeEventListener(this);
}
//----- XSlideShowListener ----------------------------------------------------
More information about the Libreoffice-commits
mailing list