mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-07 03:07:34 +01:00
Merge pull request #164 from mbiette/fix_delete
Fix destructor crash due to wild pointer
This commit is contained in:
commit
1f1b0cd45e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user