From e2da2952a2cdfc964247ee454440bf0678e9fac2 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 24 Nov 2007 22:45:54 +0100 Subject: [PATCH] onsetdetection.c: factorise switch, complete specflux deletion --- src/onset/onsetdetection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/onset/onsetdetection.c b/src/onset/onsetdetection.c index 0dd52cf1..b7d42055 100644 --- a/src/onset/onsetdetection.c +++ b/src/onset/onsetdetection.c @@ -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: -- 2.26.2