diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-29 17:16:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-29 20:09:50 +0100 |
commit | 680f375476a2dc51e496bfbfbdaea4163a2f58b2 (patch) | |
tree | 0783347852df6804bb862c0dfb54c230f8456428 /sw | |
parent | 1d53996334db8850ff7a1bbfa8fa22b230b1c40e (diff) |
valgrind: fix leak
Change-Id: I3c8fdc00c3d4c6adaf6f1f790ed0549676e76772
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/doctxm.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index 4ed21abd71f2..d56cf61aeacf 100644 --- a/sw/source/core/doc/doctxm.cxx +++ b/sw/source/core/doc/doctxm.cxx @@ -708,6 +708,8 @@ SwTOXBaseSection::SwTOXBaseSection(SwTOXBase const& rBase, SwSectionFmt & rFmt) SwTOXBaseSection::~SwTOXBaseSection() { + for (SwTOXSortTabBases::const_iterator it = aSortArr.begin(); it != aSortArr.end(); ++it) + delete *it; } bool SwTOXBaseSection::SetPosAtStartEnd( SwPosition& rPos, bool bAtStart ) const |