fixed memory freeing of pitchmcomb
authorPaul Brossier <piem@altern.org>
Fri, 3 Jun 2005 00:56:57 +0000 (00:56 +0000)
committerPaul Brossier <piem@altern.org>
Fri, 3 Jun 2005 00:56:57 +0000 (00:56 +0000)
src/pitchmcomb.c

index 7aa64a338cf2cabdbdb9791dba2de1b4bd7ade0e..b43083ae9fcf109d4c260a9c144810d013bf8706 100644 (file)
@@ -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;i<p->ncand;i++) {
     AUBIO_FREE(p->candidates[i]);