diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-08-29 20:48:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-29 21:41:08 +0200 |
commit | c82e5db9626e4d84300f84842b837e852be828be (patch) | |
tree | f99dd5fe791a172703b3b3be722690c08a56a7fb /sfx2 | |
parent | 864f89e92e31c239afdea5d429e5f569b3894d1a (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>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 5be340533e22..19eda7892422 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -1041,6 +1041,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(); |