From: Paul Brossier Date: Sat, 24 Nov 2007 21:45:54 +0000 (+0100) Subject: onsetdetection.c: factorise switch, complete specflux deletion X-Git-Tag: bzr2git~436 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2da2952a2cdfc964247ee454440bf0678e9fac2;p=aubio.git onsetdetection.c: factorise switch, complete specflux deletion --- 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: