summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-08-29 20:48:42 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-09-05 13:56:47 +0200
commit02b95a0e8191fc560637b2fa3a62bca0bd51b9c4 (patch)
tree12c6d13ea59c364598d0541b74be75497391ba8a /sfx2
parente510fbc21f6dec877cda04e17f1433f09fa00066 (diff)
tdf#112027: avoid leaks in FillTreeBox (sfx2)
Next step could be using std::unique_ptr<StyleTree_Impl> instead of StyleTree_Impl* Change-Id: Ifbf5313fedf1fc0310073918f91edd6fe75d0afc Reviewed-on: https://gerrit.libreoffice.org/41710 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit c82e5db9626e4d84300f84842b837e852be828be) Reviewed-on: https://gerrit.libreoffice.org/41925 Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/templdlg.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 48a874f34996..fdeaa9910a42 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -1044,6 +1044,7 @@ void SfxCommonTemplateDialog_Impl::FillTreeBox()
for (sal_uInt16 i = 0; i < nCount; ++i)
{
FillBox_Impl(pTreeBox, aArr[i], aEntries, pItem->GetFamily(), nullptr);
+ delete aArr[i];
}
pTreeBox->Recalc();