[Libreoffice-commits] core.git: cui/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed May 26 13:21:30 UTC 2021
cui/source/customize/cfg.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit e608a95752692dfa1195917d4b252731bd4632b5
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed May 26 10:50:29 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed May 26 15:20:43 2021 +0200
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 at collabora.co.uk>
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* )
More information about the Libreoffice-commits
mailing list