diff options
author | Max Horn | 2004-03-25 11:25:50 +0000 |
---|---|---|
committer | Max Horn | 2004-03-25 11:25:50 +0000 |
commit | cb8ca939c2378990fb0ac24250a6aef9bcc56ecf (patch) | |
tree | 31743f825fad26cff390d36ed5ff91931864b9fa /common/str.cpp | |
parent | 2c327348a64dd1cc2af3ad4cf5122ce796e7a782 (diff) | |
download | scummvm-rg350-cb8ca939c2378990fb0ac24250a6aef9bcc56ecf.tar.gz scummvm-rg350-cb8ca939c2378990fb0ac24250a6aef9bcc56ecf.tar.bz2 scummvm-rg350-cb8ca939c2378990fb0ac24250a6aef9bcc56ecf.zip |
free(0) is guaranteed to be a no-op
svn-id: r13380
Diffstat (limited to 'common/str.cpp')
-rw-r--r-- | common/str.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/str.cpp b/common/str.cpp index 7ead1ddf21..3691088e6a 100644 --- a/common/str.cpp +++ b/common/str.cpp @@ -73,8 +73,7 @@ void String::decRefCount() { --(*_refCount); if (*_refCount <= 0) { delete _refCount; - if (_str) - free(_str); + free(_str); } } |