diff --git a/PowerEditor/src/MISC/Common/Common.h b/PowerEditor/src/MISC/Common/Common.h index 88834967a..d42e16f18 100644 --- a/PowerEditor/src/MISC/Common/Common.h +++ b/PowerEditor/src/MISC/Common/Common.h @@ -116,7 +116,7 @@ protected: class StringBuffer { public: StringBuffer() : _str(0), _allocLen(0) { } - ~StringBuffer() { if(_str) delete [] _str; } + ~StringBuffer() { if(_allocLen) delete [] _str; } void sizeTo(size_t size) { if(_allocLen < size)