Fixed potential memory leak in RingBuffer
This commit is contained in:
@@ -72,6 +72,11 @@ public:
|
|||||||
memset(buf, 0, sizeof(T) * size);
|
memset(buf, 0, sizeof(T) * size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~RingBuffer()
|
||||||
|
{
|
||||||
|
delete [] buf;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return A pointer to the underlying buffer
|
* @return A pointer to the underlying buffer
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user