aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/smush/channel.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-07 14:31:45 +0000
committerJohannes Schickel2008-05-07 14:31:45 +0000
commit600ab40bcab24d3c1c8d98d3fefefa6026f03382 (patch)
tree37d052c958cb62aa947bc97c651d2d49a240f81f /engines/scumm/smush/channel.cpp
parentf65e9a17c34daeaa93b7de99b639cddcc6997abe (diff)
downloadscummvm-rg350-600ab40bcab24d3c1c8d98d3fefefa6026f03382.tar.gz
scummvm-rg350-600ab40bcab24d3c1c8d98d3fefefa6026f03382.tar.bz2
scummvm-rg350-600ab40bcab24d3c1c8d98d3fefefa6026f03382.zip
Changed all delete [] usages to delete[].
svn-id: r31927
Diffstat (limited to 'engines/scumm/smush/channel.cpp')
-rw-r--r--engines/scumm/smush/channel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/smush/channel.cpp b/engines/scumm/smush/channel.cpp
index 5b8cd3a853..836defd6fc 100644
--- a/engines/scumm/smush/channel.cpp
+++ b/engines/scumm/smush/channel.cpp
@@ -70,7 +70,7 @@ void SmushChannel::processBuffer() {
_tbufferSize = 0;
}
if (_sbufferSize == 0) {
- delete []_sbuffer;
+ delete[]_sbuffer;
_sbuffer = 0;
}
} else {
@@ -90,7 +90,7 @@ void SmushChannel::processBuffer() {
if (!_sbuffer)
error("smush channel failed to allocate memory");
memcpy(_sbuffer, _tbuffer + offset, _sbufferSize);
- delete []_tbuffer;
+ delete[]_tbuffer;
_tbuffer = 0;
_tbufferSize = 0;
} else {
@@ -102,7 +102,7 @@ void SmushChannel::processBuffer() {
error("smush channel failed to allocate memory");
memcpy(_tbuffer, old + offset, new_size);
_tbufferSize = new_size;
- delete []old;
+ delete[]old;
}
}
}