incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r1172118 - /incubator/ooo/trunk/main/sw/source/core/doc/doccomp.cxx
Date Sat, 17 Sep 2011 22:40:26 GMT
Author: mst
Date: Sat Sep 17 22:40:26 2011
New Revision: 1172118

URL: http://svn.apache.org/viewvc?rev=1172118&view=rev
Log:
sw34bf06: doccomp.cxx: fix some resource management problems

# HG changeset patch
# User Michael Stahl <mst@openoffice.org>
# Date 1304517801 0
# Node ID a75a68c2c0cf7a991cdda1dd4915916da8d20ed6
# Parent  3b8bef840a50f19ff04ffb92bc6906ac2b6828ad

Modified:
    incubator/ooo/trunk/main/sw/source/core/doc/doccomp.cxx

Modified: incubator/ooo/trunk/main/sw/source/core/doc/doccomp.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/core/doc/doccomp.cxx?rev=1172118&r1=1172117&r2=1172118&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sw/source/core/doc/doccomp.cxx (original)
+++ incubator/ooo/trunk/main/sw/source/core/doc/doccomp.cxx Sat Sep 17 22:40:26 2011
@@ -618,8 +618,8 @@ Compare::MovedData::MovedData( CompareDa
 
 Compare::MovedData::~MovedData()
 {
-	delete pIndex;
-	delete pLineNum;
+    delete [] pIndex;
+    delete [] pLineNum;
 }
 
 // ----------------------------------------------------------------------
@@ -640,7 +640,7 @@ Compare::CompareSequence::CompareSequenc
 
 Compare::CompareSequence::~CompareSequence()
 {
-	delete pMemory;
+    delete [] pMemory;
 }
 
 void Compare::CompareSequence::Compare( sal_uLong nStt1, sal_uLong nEnd1,



Mime
View raw message