[Scummvm-cvs-logs] CVS: scummvm/common str.cpp,1.29,1.30
Max Horn
fingolfin at users.sourceforge.net
Thu Mar 25 03:37:06 CET 2004
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8437
Modified Files:
str.cpp
Log Message:
free(0) is guaranteed to be a no-op
Index: str.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/str.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- str.cpp 14 Feb 2004 01:12:35 -0000 1.29
+++ str.cpp 25 Mar 2004 11:25:50 -0000 1.30
@@ -73,8 +73,7 @@
--(*_refCount);
if (*_refCount <= 0) {
delete _refCount;
- if (_str)
- free(_str);
+ free(_str);
}
}
More information about the Scummvm-git-logs
mailing list