diff options
author | Johannes Schickel | 2008-05-07 14:31:45 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-05-07 14:31:45 +0000 |
commit | 600ab40bcab24d3c1c8d98d3fefefa6026f03382 (patch) | |
tree | 37d052c958cb62aa947bc97c651d2d49a240f81f /engines/scumm/smush/channel.cpp | |
parent | f65e9a17c34daeaa93b7de99b639cddcc6997abe (diff) | |
download | scummvm-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.cpp | 6 |
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; } } } |