projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e21208e
)
fix memory freeing in examples
author
Paul Brossier
<piem@altern.org>
Fri, 21 Jul 2006 13:57:28 +0000
(13:57 +0000)
committer
Paul Brossier
<piem@altern.org>
Fri, 21 Jul 2006 13:57:28 +0000
(13:57 +0000)
fix memory freeing in examples
examples/utils.c
patch
|
blob
|
history
diff --git
a/examples/utils.c
b/examples/utils.c
index 0de946ead911e01aebb27cb6a1f3707930a5dbdc..616c9e3a0ee866186579cae7bf6f0c4da0146409 100644
(file)
--- 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 ){