diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-22 11:58:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-23 06:46:13 +0200 |
commit | b71e02dd5bfaaa490dc7f56eddf10c17681108b5 (patch) | |
tree | b406df81dd38fd967d3b900db6e034f1a15b50ee /sw/source/ui/dbui | |
parent | 8f98a7c4e5b1f0b249c026577805a378b8a533d5 (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 'sw/source/ui/dbui')
-rw-r--r-- | sw/source/ui/dbui/dbtablepreviewdialog.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/ui/dbui/dbtablepreviewdialog.cxx b/sw/source/ui/dbui/dbtablepreviewdialog.cxx index 42f07505fe37..27110367df53 100644 --- a/sw/source/ui/dbui/dbtablepreviewdialog.cxx +++ b/sw/source/ui/dbui/dbtablepreviewdialog.cxx @@ -87,6 +87,7 @@ void SwDBTablePreviewDialog::dispose() { m_xFrame->setComponent(nullptr, nullptr); m_xFrame->dispose(); + m_xFrame.clear(); } m_pDescriptionFI.clear(); m_pBeamerWIN.clear(); |