diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-01-10 11:52:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-01-10 17:30:24 +0100 |
commit | 4db0b6fc7f51fb5bfe2d61faf50a3063228da1c8 (patch) | |
tree | 4481a79c1f805f48e44bbafb1653b3438335fd2b /sw/source/uibase/utlui | |
parent | bdb0177b550d27a541cdfc0668714b2e9ac28540 (diff) |
Resolves: tdf#43220 ensure old popup is destroyed on replacement
with a new one
Change-Id: I0979cea429b2d1e55835ff5a65725b84b7764201
Reviewed-on: https://gerrit.libreoffice.org/66084
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r-- | sw/source/uibase/utlui/navipi.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index 6ee69e9944a8..92af8a191dc4 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -800,6 +800,7 @@ void SwNavigationPI::dispose() void SwNavigationPI::SetPopupWindow( SfxPopupWindow* pWindow ) { + m_pPopupWindow.disposeAndClear(); m_pPopupWindow = pWindow; m_pPopupWindow->SetPopupModeEndHdl( LINK( this, SwNavigationPI, PopupModeEndHdl )); m_pPopupWindow->SetDeleteLink_Impl( LINK( this, SwNavigationPI, ClosePopupWindow )); |