X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fvamp-plugins%2FTruePeak.cpp;h=3d6c12ee2a7ab4b8af33356ff7b31691fe67402a;hb=00150e105cc5c4cfe297d1355be075711c42c924;hp=44de93d6811c5b00460874589221f65103df154f;hpb=365f6d633731229e7bc5d37a5fe2c9107b527e28;p=ardour.git diff --git a/libs/vamp-plugins/TruePeak.cpp b/libs/vamp-plugins/TruePeak.cpp index 44de93d681..3d6c12ee2a 100644 --- a/libs/vamp-plugins/TruePeak.cpp +++ b/libs/vamp-plugins/TruePeak.cpp @@ -219,8 +219,10 @@ Resampler::setup (unsigned int fs_inp, _inmax = k; _pstep = s; return reset (); + } else { + delete[] B; + return 1; } - else return 1; } void @@ -369,6 +371,7 @@ TruePeakdsp::TruePeakdsp (void) : _m (0) , _p (0) , _res (true) + , _res_peak (true) , _buf (NULL) { }