Fix an unlikely memory leak in zita-resampler
This commit is contained in:
parent
221975a982
commit
f0a8b8cd6d
@ -98,15 +98,19 @@ Resampler::setup (unsigned int fs_inp,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
clear ();
|
clear ();
|
||||||
if (T) {
|
|
||||||
_table = T;
|
if (!T || !B) {
|
||||||
_buff = B;
|
Resampler_table::destroy (T);
|
||||||
_nchan = nchan;
|
delete [] B;
|
||||||
_inmax = k;
|
return 1;
|
||||||
_pstep = s;
|
|
||||||
return reset ();
|
|
||||||
}
|
}
|
||||||
else return 1;
|
|
||||||
|
_table = T;
|
||||||
|
_buff = B;
|
||||||
|
_nchan = nchan;
|
||||||
|
_inmax = k;
|
||||||
|
_pstep = s;
|
||||||
|
return reset ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user