[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:
parent
03b2d5e8b7
commit
a86096b84b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user