[Scummvm-cvs-logs] CVS: scummvm/scumm/smush codec47.cpp,1.64,1.65

Pawel Kolodziejski aquadran at users.sourceforge.net
Sat Dec 6 00:37:01 CET 2003


Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1:/tmp/cvs-serv32052

Modified Files:
	codec47.cpp 
Log Message:
cleanup

Index: codec47.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/codec47.cpp,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- codec47.cpp	6 Dec 2003 08:14:30 -0000	1.64
+++ codec47.cpp	6 Dec 2003 08:36:07 -0000	1.65
@@ -525,7 +525,7 @@
 Codec47Decoder::Codec47Decoder() {
 	_tableBig = (byte *)malloc(99328);
 	_tableSmall = (byte *)malloc(32768);
-	_deltaBuf = 0;
+	_deltaBuf = NULL;
 }
 
 void Codec47Decoder::deinit() {
@@ -533,15 +533,15 @@
 	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;
 	}





More information about the Scummvm-git-logs mailing list