shithub: aubio

Download patch

ref: e2da2952a2cdfc964247ee454440bf0678e9fac2
parent: ed631e9af81f4d13eda09f343383c307c85aadaa
author: Paul Brossier <[email protected]>
date: Sat Nov 24 17:45:54 EST 2007

onsetdetection.c: factorise switch, complete specflux deletion

--- a/src/onset/onsetdetection.c
+++ b/src/onset/onsetdetection.c
@@ -325,9 +325,8 @@
       del_aubio_hist(o->histog);
       break;
     case aubio_onset_kl:
-      del_fvec(o->oldmag);
-      break;
     case aubio_onset_mkl:
+    case aubio_onset_specflux:
       del_fvec(o->oldmag);
       break;
     default: