Fixed potential memory leak in RingBuffer

This commit is contained in:
Joseph Henry 2019-01-27 14:43:29 -08:00 committed by Grant Limberg
parent 321cada1d7
commit 541e91ed8e

View File

@ -72,6 +72,11 @@ public:
memset(buf, 0, sizeof(T) * size);
}
~RingBuffer()
{
delete [] buf;
}
/**
* @return A pointer to the underlying buffer
*/