mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-27 04:47:51 +02:00
Merge pull request #164 from mbiette/fix_delete
Fix destructor crash due to wild pointer
This commit is contained in:
@ -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;
|
||||||
@ -331,4 +329,4 @@ namespace dsp {
|
|||||||
bool stopWorker = false;
|
bool stopWorker = false;
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user