From b4ad853600f1fde7eb739ccddb02df2647c6c155 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 29 Sep 2016 16:16:57 +0200 Subject: [PATCH] src/effects/timestretch_rubberband.c: remove unused variable, erase internal vector --- src/effects/timestretch_rubberband.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/effects/timestretch_rubberband.c b/src/effects/timestretch_rubberband.c index c2f383fc..52c3699e 100644 --- a/src/effects/timestretch_rubberband.c +++ b/src/effects/timestretch_rubberband.c @@ -43,7 +43,6 @@ struct _aubio_timestretch_t aubio_source_t *source; fvec_t *in; - fvec_t *zeros; uint_t eof; RubberBandState rb; @@ -67,7 +66,6 @@ new_aubio_timestretch (const char_t * uri, const char_t * mode, if (samplerate == 0 ) p->samplerate = aubio_source_get_samplerate(p->source); p->in = new_fvec(hopsize); - p->zeros = new_fvec(hopsize); if (stretchratio <= MAX_STRETCH_RATIO && stretchratio >= MIN_STRETCH_RATIO) { p->stretchratio = stretchratio; @@ -111,6 +109,7 @@ beach: void del_aubio_timestretch (aubio_timestretch_t * p) { + if (p->in) del_fvec(p->in); if (p->source) del_aubio_source(p->source); if (p->rb) { rubberband_delete(p->rb); -- 2.11.0