mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-24 18:08:27 +01:00
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:
parent
2151d1e6cc
commit
5971d3d3b3
@ -8,7 +8,9 @@ namespace dsp {
|
|||||||
template <class T>
|
template <class T>
|
||||||
class RingBuffer {
|
class RingBuffer {
|
||||||
public:
|
public:
|
||||||
RingBuffer() {
|
RingBuffer():
|
||||||
|
_buffer{nullptr}
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user