summaryrefslogtreecommitdiff
path: root/basic/source/runtime/methods.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-22 10:01:41 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-22 10:01:41 +0000
commitd687258ccebbcfacac31bb3f97035e21039b6e35 (patch)
treea1a013bbafa90aac1e5355bc0cafc009623c7826 /basic/source/runtime/methods.cxx
parent4d8aa9bb059a2bb21b452214a5a0d3473f8e006e (diff)
INTEGRATION: CWS setup09 (1.50.16); FILE MERGED
2003/05/21 10:32:38 dv 1.50.16.1: #109685# fixed new/delete mismatch
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r--basic/source/runtime/methods.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index c018314704a9..2b784cdf076d 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: methods.cxx,v $
*
- * $Revision: 1.50 $
+ * $Revision: 1.51 $
*
- * last change: $Author: vg $ $Date: 2003-04-24 14:02:01 $
+ * last change: $Author: vg $ $Date: 2003-05-22 11:01:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -496,7 +496,7 @@ RTLFUNC(CurDir)
rPar.Get(0)->PutString( String::CreateFromAscii( pBuffer ) );
else
StarBASIC::Error( SbERR_NO_DEVICE );
- delete pBuffer;
+ delete [] pBuffer;
_chdrive(old);
#else
#ifdef OS2
@@ -507,7 +507,7 @@ RTLFUNC(CurDir)
rPar.Get(0)->PutString( String::CreateFromAscii( pBuffer ) );
else
StarBASIC::Error( SbERR_NO_DEVICE );
- delete pBuffer;
+ delete [] pBuffer;
#endif
#elif defined MAC
@@ -573,16 +573,16 @@ RTLFUNC(CurDir)
if( getcwd( pMem, nSize-1 ) != NULL )
{
rPar.Get(0)->PutString( String::CreateFromAscii(pMem) );
- delete pMem;
+ delete [] pMem;
return;
}
if( errno != ERANGE )
{
StarBASIC::Error( SbERR_INTERNAL_ERROR );
- delete pMem;
+ delete [] pMem;
return;
}
- delete pMem;
+ delete [] pMem;
nSize += _PATH_INCR;
};