Fix AFL position
[ardour.git] / libs / vamp-plugins / TruePeak.cpp
index 44de93d6811c5b00460874589221f65103df154f..3d6c12ee2a7ab4b8af33356ff7b31691fe67402a 100644 (file)
@@ -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)
 {
 }