From a47da1d152eec09bbd31ca0b169751ba413d653d Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien <hr@openoffice.org> Date: Fri, 3 Aug 2007 11:32:06 +0000 Subject: INTEGRATION: CWS cmcfixes35 (1.9.20); FILE MERGED 2007/07/06 12:18:35 cmc 1.9.20.1: #i79003# new[] vs delete --- sax/source/expatwrap/xml2utf.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sax/source') diff --git a/sax/source/expatwrap/xml2utf.cxx b/sax/source/expatwrap/xml2utf.cxx index 3d7b9649c6d5..38e02310c732 100644 --- a/sax/source/expatwrap/xml2utf.cxx +++ b/sax/source/expatwrap/xml2utf.cxx @@ -4,9 +4,9 @@ * * $RCSfile: xml2utf.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: rt $ $Date: 2006-06-26 09:42:10 $ + * last change: $Author: hr $ $Date: 2007-08-03 12:32:06 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -459,7 +459,7 @@ Sequence<sal_Unicode> Text2UnicodeConverter::convert( const Sequence<sal_Int8> & if( pbTempMem ) { - delete pbTempMem; + delete [] pbTempMem; } // set to correct unicode size @@ -574,7 +574,7 @@ Sequence<sal_Int8> Unicode2TextConverter::convert(const sal_Unicode *puSource , } if( puTempMem ) { - delete puTempMem; + delete [] puTempMem; } // reduce the size of the buffer (fast, no copy necessary) -- cgit