ref: b91fe6ec6c51eff8ad2a7803c2ddef0fedfc9ae3
parent: e21208e3247cdf8035020cdf96649993f9239a5e
author: Paul Brossier <piem@altern.org>
date: Fri Jul 21 09:57:28 EDT 2006
fix memory freeing in examples fix memory freeing in examples
--- a/examples/utils.c
+++ b/examples/utils.c
@@ -324,11 +324,19 @@
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 ){