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 0dd52cf124f40236e5cacd02704ee985e5765556..b7d42055680d212e9461fed0c14765a42e925cc2 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: