summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2009-11-06 11:03:40 +0000
committerCaolán McNamara <cmc@openoffice.org>2009-11-06 11:03:40 +0000
commit3a97ef970ec15962081705be7006ccc2805dedb5 (patch)
tree029b2288cde2fc32653bc4f7b518cea9af05cd40 /tools
parent633f194aa52df3fa85458f70be7d33d35b9dbf01 (diff)
cmcfixes66: #i106674# fix remaining new[]/delete mismatches
Diffstat (limited to 'tools')
-rw-r--r--tools/source/fsys/wntmsc.cxx2
-rw-r--r--tools/source/stream/strmunx.cxx2
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;
}
}
}