mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 12:47:40 +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>
|
||||
class RingBuffer {
|
||||
public:
|
||||
RingBuffer() {
|
||||
RingBuffer():
|
||||
_buffer{nullptr}
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user