Fix destructor crash due to wild pointer

Otherwise when RingBuffer is deleted before its init() being called it would crash in the destructor due to its _buffer pointer not being initialized.
This commit is contained in:
Maxime Biette 2021-07-11 18:33:41 -04:00
parent 2151d1e6cc
commit 5971d3d3b3

View File

@ -8,7 +8,9 @@ namespace dsp {
template <class T>
class RingBuffer {
public:
RingBuffer() {
RingBuffer():
_buffer{nullptr}
{
}