aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/smush/channel.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-07 15:09:10 +0000
committerJohannes Schickel2008-05-07 15:09:10 +0000
commit311e9165ed3b9442049e9e5e6b25c31d024f04ac (patch)
treea72a266baf6b872300c877f5ed55e8f5cb8ac1dd /engines/scumm/smush/channel.cpp
parent2d707af33825097e3fd0c001101d9a2691e9ff6f (diff)
downloadscummvm-rg350-311e9165ed3b9442049e9e5e6b25c31d024f04ac.tar.gz
scummvm-rg350-311e9165ed3b9442049e9e5e6b25c31d024f04ac.tar.bz2
scummvm-rg350-311e9165ed3b9442049e9e5e6b25c31d024f04ac.zip
Proper delete[] formatting (this time all occurences should've been changed...)
svn-id: r31929
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 836defd6fc..ccf67764e3 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;
}
}
}