aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-12-06 08:36:07 +0000
committerPaweł Kołodziejski2003-12-06 08:36:07 +0000
commit2cf7ff1e4d4a2ee3e007ece1c015eef860ffb3c8 (patch)
tree964fc66a007a09e95b7eb138fcb40853ae87f568
parent4a42abd5f983d5281803952e6912760d95fba436 (diff)
downloadscummvm-rg350-2cf7ff1e4d4a2ee3e007ece1c015eef860ffb3c8.tar.gz
scummvm-rg350-2cf7ff1e4d4a2ee3e007ece1c015eef860ffb3c8.tar.bz2
scummvm-rg350-2cf7ff1e4d4a2ee3e007ece1c015eef860ffb3c8.zip
cleanup
svn-id: r11516
-rw-r--r--scumm/smush/codec47.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp
index 1d906ede82..ed3613beca 100644
--- a/scumm/smush/codec47.cpp
+++ b/scumm/smush/codec47.cpp
@@ -525,7 +525,7 @@ void Codec47Decoder::init(int width, int height) {
Codec47Decoder::Codec47Decoder() {
_tableBig = (byte *)malloc(99328);
_tableSmall = (byte *)malloc(32768);
- _deltaBuf = 0;
+ _deltaBuf = NULL;
}
void Codec47Decoder::deinit() {
@@ -533,15 +533,15 @@ void Codec47Decoder::deinit() {
if (_deltaBuf) {
free(_deltaBuf);
_deltaSize = 0;
- _deltaBuf = 0;
- _deltaBufs[0] = 0;
- _deltaBufs[1] = 0;
+ _deltaBuf = NULL;
+ _deltaBufs[0] = NULL;
+ _deltaBufs[1] = NULL;
}
- if (_tableBig == NULL) {
+ if (_tableBig) {
free(_tableBig);
_tableBig = NULL;
}
- if (_tableSmall == NULL) {
+ if (_tableSmall) {
free(_tableSmall);
_tableSmall = NULL;
}