mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-06 18:57:39 +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>
|
||||
class RingBuffer {
|
||||
public:
|
||||
RingBuffer() {
|
||||
|
||||
}
|
||||
RingBuffer() {}
|
||||
|
||||
RingBuffer(int maxLatency) { init(maxLatency); }
|
||||
|
||||
@ -200,7 +198,7 @@ namespace dsp {
|
||||
}
|
||||
|
||||
private:
|
||||
T* _buffer;
|
||||
T* _buffer = NULL;
|
||||
int size;
|
||||
int readc;
|
||||
int writec;
|
||||
@ -331,4 +329,4 @@ namespace dsp {
|
||||
bool stopWorker = false;
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user