summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-22 11:58:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-23 06:46:13 +0200
commitb71e02dd5bfaaa490dc7f56eddf10c17681108b5 (patch)
treeb406df81dd38fd967d3b900db6e034f1a15b50ee /dbaccess
parent8f98a7c4e5b1f0b249c026577805a378b8a533d5 (diff)
dispose() methods should clear their smart pointers
especiall the ref-counted ones Change-Id: Ib3bb029043b1b923010ef4a47bfc377e1f569da7 Reviewed-on: https://gerrit.libreoffice.org/76102 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx1
-rw-r--r--dbaccess/source/ui/browser/sbagrid.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 9b36567c2d9c..6f050db476d8 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -226,6 +226,7 @@ void OAppDetailPageHelper::dispose()
Reference< ::util::XCloseable> xCloseable(m_xFrame,UNO_QUERY);
if ( xCloseable.is() )
xCloseable->close(true);
+ m_xFrame.clear();
}
catch(const Exception&)
{
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx
index 059f9ac5542f..ad891571fd46 100644
--- a/dbaccess/source/ui/browser/sbagrid.cxx
+++ b/dbaccess/source/ui/browser/sbagrid.cxx
@@ -694,6 +694,7 @@ void SbaGridControl::dispose()
{
if (m_nAsyncDropEvent)
Application::RemoveUserEvent(m_nAsyncDropEvent);
+ m_nAsyncDropEvent = nullptr;
FmGridControl::dispose();
}