Merge pull request #164 from mbiette/fix_delete

Fix destructor crash due to wild pointer
This commit is contained in:
AlexandreRouma 2021-07-12 01:22:02 +02:00 committed by GitHub
commit 1f1b0cd45e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,9 +8,7 @@ namespace dsp {
template <class T> template <class T>
class RingBuffer { class RingBuffer {
public: public:
RingBuffer() { RingBuffer() {}
}
RingBuffer(int maxLatency) { init(maxLatency); } RingBuffer(int maxLatency) { init(maxLatency); }
@ -200,7 +198,7 @@ namespace dsp {
} }
private: private:
T* _buffer; T* _buffer = NULL;
int size; int size;
int readc; int readc;
int writec; int writec;