onsetdetection.c: factorise switch, complete specflux deletion
authorPaul Brossier <piem@piem.org>
Sat, 24 Nov 2007 21:45:54 +0000 (22:45 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 24 Nov 2007 21:45:54 +0000 (22:45 +0100)
src/onset/onsetdetection.c

index 0dd52cf..b7d4205 100644 (file)
@@ -325,9 +325,8 @@ void del_aubio_onsetdetection (aubio_onsetdetection_t *o){
       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: