summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-06-03 16:13:52 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-03 16:18:32 +0200
commit80882b03b7e6fb3bdd18aa1ce482d96ec4cd6447 (patch)
tree2c1c8978ac2598d88e45c412d7991b348d1d1e94 /sw
parent80cee9c82cab9466c4b2e7622e395efb0e066adb (diff)
SwDoc::AppendRedline: fix an obscure memory leak
... that also causes ~SwIndexReg assertion on closing the document. Change-Id: Icea617c893ddc08b817a5b16f68fa128a41531d4 (cherry picked from commit 460507f07177587a9bb6438a438de95c47abb3f0)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docredln.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 6f3e18b222ec..a6a92a144543 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -430,7 +430,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
{
// own insert-over-insert redlines:
// just scrap the inside ones
- mpRedlineTbl->Remove( n );
+ mpRedlineTbl->DeleteAndDestroy( n );
bDec = true;
}
else if( POS_OVERLAP_BEHIND == eCmpPos )