Unified · Split
| @@ -1,3 +1,8 @@ | ||
| 1 | +2012-08-23 Erik de Castro Lopo <erikd AT mega-nerd DOT com> | |
| 2 | + | |
| 3 | + * tests/multi_channel_test.c tests/snr_bw_test.c tests/varispeed_test.c | |
| 4 | + Use fftw_cleanup() to remove all memory leaks reported by valgrind. | |
| 5 | + | |
| 1 | 6 | 2012-08-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com> |
| 2 | 7 | |
| 3 | 8 | * src/src_sinc.c |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | −** Copyright (C) 2002-2011 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 2 | +** Copyright (C) 2002-2012 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 3 | 3 | ** |
| 4 | 4 | ** This program is free software; you can redistribute it and/or modify |
| 5 | 5 | ** it under the terms of the GNU General Public License as published by |
| @@ -24,6 +24,15 @@ · 18 unmodified lines | ||
| 24 | 24 | #include <math.h> |
| 25 | 25 | #include <assert.h> |
| 26 | 26 | |
| 27 | +#if (HAVE_FFTW3) | |
| 28 | +#include <fftw3.h> | |
| 29 | +#else | |
| 30 | +static inline void | |
| 31 | +fftw_cleanup (void) | |
| 32 | +{ return ; | |
| 33 | +} | |
| 34 | +#endif | |
| 35 | + | |
| 27 | 36 | #include <samplerate.h> |
| 28 | 37 | |
| 29 | 38 | #include "util.h" |
| @@ -65,6 +74,7 @@ main (void) · 35 unmodified lines | ||
| 65 | 74 | callback_test (SRC_SINC_FASTEST, k, target) ; |
| 66 | 75 | } ; |
| 67 | 76 | |
| 77 | + fftw_cleanup () ; | |
| 68 | 78 | puts ("") ; |
| 69 | 79 | |
| 70 | 80 | return 0 ; |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | −** Copyright (C) 2002-2011 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 2 | +** Copyright (C) 2002-2012 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 3 | 3 | ** |
| 4 | 4 | ** This program is free software; you can redistribute it and/or modify |
| 5 | 5 | ** it under the terms of the GNU General Public License as published by |
| @@ -26,6 +26,8 @@ · 20 unmodified lines | ||
| 26 | 26 | |
| 27 | 27 | #if (HAVE_FFTW3) |
| 28 | 28 | |
| 29 | +#include <fftw3.h> | |
| 30 | + | |
| 29 | 31 | #include <samplerate.h> |
| 30 | 32 | |
| 31 | 33 | #include "util.h" |
| @@ -178,6 +180,8 @@ main (int argc, char *argv []) · 146 unmodified lines | ||
| 178 | 180 | printf (" Measured -3dB rolloff point : %5.2f %%.\n\n", freq3dB) ; |
| 179 | 181 | } ; |
| 180 | 182 | |
| 183 | + fftw_cleanup () ; | |
| 184 | + | |
| 181 | 185 | return 0 ; |
| 182 | 186 | } /* main */ |
| 183 | 187 | |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | −** Copyright (C) 2006-2011 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 2 | +** Copyright (C) 2006-2012 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 3 | 3 | ** |
| 4 | 4 | ** This program is free software; you can redistribute it and/or modify |
| 5 | 5 | ** it under the terms of the GNU General Public License as published by |
| @@ -42,6 +42,7 @@ main (void) · 36 unmodified lines | ||
| 42 | 42 | printf (" Sinc interpolator : ") ; |
| 43 | 43 | varispeed_test (SRC_SINC_FASTEST, 115.0) ; |
| 44 | 44 | |
| 45 | + fftw_cleanup () ; | |
| 45 | 46 | puts ("") ; |
| 46 | 47 | |
| 47 | 48 | return 0 ; |