diff options
author | Michael Stahl <mst@openoffice.org> | 2011-05-13 17:28:08 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-05-13 17:28:08 +0200 |
commit | 5f64fa0976c59fcbb7c199d9dac856f08f99e2a4 (patch) | |
tree | 3d889999d9dc264065e9280043e796ce0eac7c07 | |
parent | f9c747ad060054494bb7b4ca6e8002615fd669d0 (diff) |
sw34bf06: doccomp.cxx: fix some resource management problems
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
-rw-r--r-- | sw/source/core/doc/doccomp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx index a8f22337db..8630801c45 100644 --- a/sw/source/core/doc/doccomp.cxx +++ b/sw/source/core/doc/doccomp.cxx @@ -606,8 +606,8 @@ Compare::MovedData::MovedData( CompareData& rData, sal_Char* pDiscard ) Compare::MovedData::~MovedData() { - delete pIndex; - delete pLineNum; + delete [] pIndex; + delete [] pLineNum; } // Suche die verschobenen Lines @@ -626,7 +626,7 @@ Compare::CompareSequence::CompareSequence( Compare::CompareSequence::~CompareSequence() { - delete pMemory; + delete [] pMemory; } void Compare::CompareSequence::Compare( sal_uLong nStt1, sal_uLong nEnd1, |