[BUG_FIXED] (Author: Jocelyn Legault) Fix a memory corruption bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@689 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2010-10-26 21:09:34 +00:00
parent 03b2d5e8b7
commit a86096b84b

View File

@ -116,7 +116,7 @@ protected:
class StringBuffer { class StringBuffer {
public: public:
StringBuffer() : _str(0), _allocLen(0) { } StringBuffer() : _str(0), _allocLen(0) { }
~StringBuffer() { if(_str) delete [] _str; } ~StringBuffer() { if(_allocLen) delete [] _str; }
void sizeTo(size_t size) { void sizeTo(size_t size) {
if(_allocLen < size) if(_allocLen < size)