diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-12 13:23:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-12 15:44:12 +0200 |
commit | dad39d0022ed267ede3e8e589854f7eb73e602f3 (patch) | |
tree | 2598a34ff97b9c1f05d5309202afa0e52e6d39f5 /sw | |
parent | 6a6225cea84b43ac0231333afbde89b399984322 (diff) |
fix some VirtualDevice leaks
Change-Id: I645543fa27ca8b75b36ed7798f0af7b81fd09f49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115477
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/HeaderFooterWin.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/docvw/PageBreakWin.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/docvw/UnfloatTableButton.cxx | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx index 2232c7b8d4cd..d8ae3e80d062 100644 --- a/sw/source/uibase/docvw/HeaderFooterWin.cxx +++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx @@ -207,6 +207,7 @@ void SwHeaderFooterWin::dispose() m_pLine.disposeAndClear(); m_xPushButton.reset(); m_xMenuButton.reset(); + m_xVirDev.disposeAndClear(); SwFrameMenuButtonBase::dispose(); } diff --git a/sw/source/uibase/docvw/PageBreakWin.cxx b/sw/source/uibase/docvw/PageBreakWin.cxx index 535f02b85a25..7a9022e01778 100644 --- a/sw/source/uibase/docvw/PageBreakWin.cxx +++ b/sw/source/uibase/docvw/PageBreakWin.cxx @@ -134,7 +134,7 @@ void SwPageBreakWin::dispose() { m_bDestroyed = true; m_aFadeTimer.Stop(); - + m_xVirDev.disposeAndClear(); m_pLine.disposeAndClear(); m_xMenuButton.reset(); diff --git a/sw/source/uibase/docvw/UnfloatTableButton.cxx b/sw/source/uibase/docvw/UnfloatTableButton.cxx index 24e6780e1ed2..803c851a5dbb 100644 --- a/sw/source/uibase/docvw/UnfloatTableButton.cxx +++ b/sw/source/uibase/docvw/UnfloatTableButton.cxx @@ -61,6 +61,7 @@ UnfloatTableButton::~UnfloatTableButton() { disposeOnce(); } void UnfloatTableButton::dispose() { m_xPushButton.reset(); + m_xVirDev.disposeAndClear(); SwFrameMenuButtonBase::dispose(); } |