aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/str.cpp3
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);
}
}