diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-12-16 15:58:10 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-12-16 20:19:16 +0100 |
commit | 41981d4cb48e66b6fdb32cdc3ae65632af9593dc (patch) | |
tree | 557f189d9892dabbcb4cdf14978c1878ad250381 /cui | |
parent | can use GetSelectedEntryData here (diff) | |
download | core-41981d4cb48e66b6fdb32cdc3ae65632af9593dc.tar.gz core-41981d4cb48e66b6fdb32cdc3ae65632af9593dc.zip |
Related tdf#114457: fix leak in treeopt (cui)
Change-Id: I28bd32d01bb3d90e68e816720b1b5af7d517760f
Reviewed-on: https://gerrit.libreoffice.org/46602
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/treeopt.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cui/source/inc/treeopt.hxx b/cui/source/inc/treeopt.hxx index 274076d9d99f..6bb74abb86eb 100644 --- a/cui/source/inc/treeopt.hxx +++ b/cui/source/inc/treeopt.hxx @@ -101,6 +101,12 @@ struct OptionsNode for ( size_t i = 0; i < m_aLeaves.size(); ++i ) delete m_aLeaves[i]; m_aLeaves.clear(); + for (auto & oneGroupLeaves : m_aGroupedLeaves) + { + for (auto const& leaf : oneGroupLeaves) + delete leaf; + oneGroupLeaves.clear(); + } m_aGroupedLeaves.clear(); } }; |