diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-09-14 23:09:58 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-09-15 05:10:34 +0200 |
commit | 2126e549623b4cbf8c8488e8f20c9a43609b3a44 (patch) | |
tree | 5b53c127fc4aac6782294009c5c24a25f889fb23 /cui/source | |
parent | e89700f02c7aa521c9e52468f076b64f1b30fcac (diff) |
tdf#112393: avoid leak in LangSelectHdl_Impl (cui)
by deleting userdata of entries containing in m_pModulesCLB
Change-Id: Ie903b0cd0ccf16839ac7bed42b7bdbc1db4fa5ef
Reviewed-on: https://gerrit.libreoffice.org/42308
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/options/optlingu.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 213bb29b69da..44fd520ba724 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1823,6 +1823,8 @@ void SvxEditModulesDlg::dispose() delete pDefaultLinguData; pDefaultLinguData = nullptr; m_pLanguageLB.clear(); + for(sal_uLong i = 0; i < m_pModulesCLB->GetEntryCount(); i++) + delete static_cast<ModuleUserData_Impl*>(m_pModulesCLB->GetEntry(i)->GetUserData()); m_pModulesCLB.clear(); m_pPrioUpPB.clear(); m_pPrioDownPB.clear(); |