remove null pointer checks...

This commit is contained in:
Charles J. Cliffe 2015-11-12 19:07:31 -05:00
parent d530edec71
commit 538092d9a0

View File

@ -56,9 +56,7 @@ void WaterfallPanel::step() {
int half_fft_size = fft_size / 2;
if (!bufferInitialized.load()) {
if (waterfall_slice != NULL) {
delete waterfall_slice;
}
delete waterfall_slice;
waterfall_slice = new unsigned char[half_fft_size];
bufferInitialized.store(true);
}