diff options
author | Caolán McNamara <cmc@openoffice.org> | 2009-11-06 11:03:40 +0000 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2009-11-06 11:03:40 +0000 |
commit | 3a97ef970ec15962081705be7006ccc2805dedb5 (patch) | |
tree | 029b2288cde2fc32653bc4f7b518cea9af05cd40 /tools | |
parent | cmcfixes66: #i106673# fix memleak (diff) | |
download | core-3a97ef970ec15962081705be7006ccc2805dedb5.tar.gz core-3a97ef970ec15962081705be7006ccc2805dedb5.zip |
cmcfixes66: #i106674# fix remaining new[]/delete mismatches
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/fsys/wntmsc.cxx | 2 | ||||
-rw-r--r-- | tools/source/stream/strmunx.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/fsys/wntmsc.cxx b/tools/source/fsys/wntmsc.cxx index 0e8e5ebc7918..153fbf37de2e 100644 --- a/tools/source/fsys/wntmsc.cxx +++ b/tools/source/fsys/wntmsc.cxx @@ -91,7 +91,7 @@ struct dirent *readdir( DIR *pDir ) pDir->h = FindFirstFile( pBuf, &pDir->aDirEnt ); bOk = pDir->h != INVALID_HANDLE_VALUE; pDir->p = NULL; - delete pBuf; + delete [] pBuf; } else pDir->h = INVALID_HANDLE_VALUE; diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx index 538c02e78fde..d27fe1f7f2c0 100644 --- a/tools/source/stream/strmunx.cxx +++ b/tools/source/stream/strmunx.cxx @@ -745,7 +745,7 @@ void SvFileStream::Open( const String& rFilename, StreamMode nOpenMode ) aFileCopier.Execute(); } } - delete pBuf; + delete [] pBuf; } } } |