From 53d50f23228c3acfe75703b51c8832ac48f54270 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Thu, 27 Mar 2003 16:45:03 +0000 Subject: MWS_SRX644: migrate branch mws_srx644 -> HEAD --- unotools/source/ucbhelper/ucblockbytes.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unotools/source/ucbhelper/ucblockbytes.cxx') diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 383cbea15dc2..c31df0407e5e 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ucblockbytes.cxx,v $ * - * $Revision: 1.41 $ + * $Revision: 1.42 $ * - * last change: $Author: mav $ $Date: 2002-08-15 15:34:27 $ + * last change: $Author: hr $ $Date: 2003-03-27 17:39:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -708,7 +708,7 @@ ErrCode UcbLockBytes::SetSize (ULONG nNewSize) ULONG nDiff = nNewSize-nSize, nCount=0; BYTE* pBuffer = new BYTE[ nDiff ]; WriteAt( nSize, pBuffer, nDiff, &nCount ); - delete pBuffer; + delete[] pBuffer; if ( nCount != nDiff ) return ERRCODE_IO_CANTWRITE; } -- cgit