summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-26 10:50:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-26 15:20:43 +0200
commite608a95752692dfa1195917d4b252731bd4632b5 (patch)
treec4f70ce3c4c483c63913c7e2aa2786bf1992b14d /cui
parent085c97c986336bc622d6b3d72e6a587e1ae4b844 (diff)
fix leak in SvxConfigPage
Change-Id: I6b95d33cfbad455692c8047968a2581fe4610260 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116190 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index de32e1063336..ef65977d3382 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1018,6 +1018,12 @@ IMPL_LINK_NOARG(SvxConfigPage, SelectElementHdl, weld::ComboBox&, void)
SvxConfigPage::~SvxConfigPage()
{
+ int cnt = m_xSaveInListBox->get_count();
+ for(int i=0; i < cnt; ++i)
+ {
+ SaveInData *pData = reinterpret_cast<SaveInData*>(m_xSaveInListBox->get_id(i).toInt64());
+ delete pData;
+ }
}
void SvxConfigPage::Reset( const SfxItemSet* )