From: Paul Brossier Date: Fri, 21 Jul 2006 18:14:57 +0000 (+0000) Subject: complete test-tss memory freeing X-Git-Tag: bzr2git~606 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=45c0f163a013670c84ff3a13d0a6dafdcb39d918;p=aubio.git complete test-tss memory freeing complete test-tss memory freeing --- diff --git a/examples/tests/test-tss.c b/examples/tests/test-tss.c index bad66129..a9cc335e 100644 --- a/examples/tests/test-tss.c +++ b/examples/tests/test-tss.c @@ -5,7 +5,7 @@ * a delay equal to the window size, hop_s. */ -#include "aubio.h" +#include int main(){ int i; @@ -28,7 +28,7 @@ int main(){ /* fill input with some data */ printf("initialised\n"); /* execute stft */ - for (i = 0; i < 1000; i++) { + for (i = 0; i < 10; i++) { aubio_pvoc_do (pv,in,fftgrain); aubio_tss_do (tss,fftgrain,ctrans,cstead); aubio_pvoc_rdo(pvt,cstead,stead); @@ -41,6 +41,7 @@ int main(){ del_cvec(ctrans); del_fvec(stead); del_fvec(trans); + aubio_cleanup(); printf("memory freed\n"); return 0; }