From b91fe6ec6c51eff8ad2a7803c2ddef0fedfc9ae3 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 21 Jul 2006 13:57:28 +0000 Subject: [PATCH] fix memory freeing in examples fix memory freeing in examples --- examples/utils.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/utils.c b/examples/utils.c index 0de946ea..616c9e3a 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -324,11 +324,19 @@ void examples_common_del(void){ del_fvec(note_buffer2); } } + if (usedoubled) { + del_aubio_onsetdetection(o2); + del_fvec(onset2); + } + del_aubio_onsetdetection(o); + del_aubio_peakpicker(parms); del_aubio_pvoc(pv); del_fvec(obuf); del_fvec(ibuf); del_cvec(fftgrain); del_fvec(onset); + del_fvec(woodblock); + aubio_cleanup(); } void examples_common_process(aubio_process_func_t process_func, aubio_print_func_t print ){ -- 2.26.2