set safebuf::m_buf to null in destructor

This commit is contained in:
Matt Wells
2014-02-02 12:16:11 -07:00
parent 0df697e56a
commit 4be68fdaa6

@ -79,6 +79,7 @@ SafeBuf::SafeBuf(char *heapBuf, long bufMax, long bytesInUse, bool ownData) {
SafeBuf::~SafeBuf() {
if(!m_usingStack && m_buf)
mfree(m_buf, m_capacity, "SafeBuf");
m_buf = NULL;
}
bool SafeBuf::setBuf(char *newBuf, long bufMax, long bytesInUse, bool ownData,