diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-06-03 16:13:52 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-06-03 16:16:41 +0200 |
commit | 460507f07177587a9bb6438a438de95c47abb3f0 (patch) | |
tree | 6cc021966f0df2513b39832ab68691d9279ddb23 | |
parent | bb6ecd8b40313b7cc83d4e619029f4e001334a52 (diff) |
SwDoc::AppendRedline: fix an obscure memory leak
... that also causes ~SwIndexReg assertion on closing the document.
Change-Id: Icea617c893ddc08b817a5b16f68fa128a41531d4
-rw-r--r-- | sw/source/core/doc/docredln.cxx | 2 |
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 ) |