Fixed new[] / delete mismatch by @krisztianloki

This commit is contained in:
Jeong Han Lee
2018-08-29 22:08:23 +02:00
parent 846b884eb5
commit 4edd2f2eff

View File

@ -73,7 +73,7 @@ public:
{init(NULL, size);} {init(NULL, size);}
~StreamBuffer() ~StreamBuffer()
{if (buffer != local) delete buffer;} {if (buffer != local) delete [] buffer;}
// operator (): get char* pointing to index // operator (): get char* pointing to index
const char* operator()(ssize_t index=0) const const char* operator()(ssize_t index=0) const