diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-01-10 11:52:44 +0000 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2019-01-15 21:54:09 +0100 |
commit | ab3bfb6d8c29d41384bbaddd41bfe03fe88d9e03 (patch) | |
tree | 3e20998ec5d7837496df07caecc288035a7efe86 /sw/source | |
parent | 1898bd6d5642ff81a09c2a9b6397ae145c3cfd8c (diff) |
Resolves: tdf#43220 ensure old popup is destroyed on replacement
with a new one
Change-Id: I0979cea429b2d1e55835ff5a65725b84b7764201
Reviewed-on: https://gerrit.libreoffice.org/66085
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sw/source')
-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 cc6d60dcc06e..3bac5f0bcd99 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -801,6 +801,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 )); |