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:16:41 +0200
commit460507f07177587a9bb6438a438de95c47abb3f0 (patch)
tree6cc021966f0df2513b39832ab68691d9279ddb23 /sw
parentbb6ecd8b40313b7cc83d4e619029f4e001334a52 (diff)
SwDoc::AppendRedline: fix an obscure memory leak
... that also causes ~SwIndexReg assertion on closing the document. Change-Id: Icea617c893ddc08b817a5b16f68fa128a41531d4
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 )