1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-10 18:43:28 -05:00

WDSP: fixed Sonar bug issue

This commit is contained in:
f4exb 2024-07-20 10:35:54 +02:00
parent 0fd169c008
commit f6d97efe55

View File

@ -437,7 +437,7 @@ void CFCOMP::SetCFCOMPPosition (TXA& txa, int pos)
void CFCOMP::SetCFCOMPprofile (TXA& txa, int nfreqs, float* F, float* G, float *E) void CFCOMP::SetCFCOMPprofile (TXA& txa, int nfreqs, float* F, float* G, float *E)
{ {
CFCOMP *a = txa.cfcomp.p; CFCOMP *a = txa.cfcomp.p;
a->nfreqs = nfreqs; a->nfreqs = nfreqs < 1 ? 1 : nfreqs;
delete[] (a->E); delete[] (a->E);
delete[] (a->F); delete[] (a->F);
delete[] (a->G); delete[] (a->G);