mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-19 06:58:54 -04:00
remove null pointer checks...
This commit is contained in:
parent
d530edec71
commit
538092d9a0
@ -56,9 +56,7 @@ void WaterfallPanel::step() {
|
|||||||
int half_fft_size = fft_size / 2;
|
int half_fft_size = fft_size / 2;
|
||||||
|
|
||||||
if (!bufferInitialized.load()) {
|
if (!bufferInitialized.load()) {
|
||||||
if (waterfall_slice != NULL) {
|
|
||||||
delete waterfall_slice;
|
delete waterfall_slice;
|
||||||
}
|
|
||||||
waterfall_slice = new unsigned char[half_fft_size];
|
waterfall_slice = new unsigned char[half_fft_size];
|
||||||
bufferInitialized.store(true);
|
bufferInitialized.store(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user