Fixed potential memory leak in RingBuffer

This commit is contained in:
Joseph Henry 2019-01-27 14:43:29 -08:00
parent d7091a0bac
commit 23996c7e6b

View File

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