From 2cf7ff1e4d4a2ee3e007ece1c015eef860ffb3c8 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sat, 6 Dec 2003 08:36:07 +0000 Subject: cleanup svn-id: r11516 --- scumm/smush/codec47.cpp | 12 ++++++------ 1 file 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; } -- cgit v1.2.3