From 21cc31162f306ece5d74f7c1952145952b5f9609 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 3 Jun 2005 00:56:57 +0000 Subject: [PATCH] fixed memory freeing of pitchmcomb --- src/pitchmcomb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pitchmcomb.c b/src/pitchmcomb.c index 7aa64a33..b43083ae 100644 --- a/src/pitchmcomb.c +++ b/src/pitchmcomb.c @@ -345,8 +345,8 @@ aubio_pitchmcomb_t * new_aubio_pitchmcomb(uint_t size, uint_t channels) { void del_aubio_pitchmcomb (aubio_pitchmcomb_t *p) { uint_t i; del_fvec(p->newmag); - del_fvec(p->newmag); - del_fvec(p->newmag); + del_fvec(p->scratch); + del_fvec(p->scratch2); AUBIO_FREE(p->peaks); for (i=0;incand;i++) { AUBIO_FREE(p->candidates[i]); -- 2.11.0