From 42e6a5ef04b084af43a58aca1ecfb71c3f79d4a3 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 15 Jul 2012 12:18:49 -0600 Subject: [PATCH] src/io/source.c: add missing free, indent --- src/io/source.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/io/source.c b/src/io/source.c index 7402ac7f..f8b06f20 100644 --- a/src/io/source.c +++ b/src/io/source.c @@ -36,15 +36,15 @@ struct _aubio_source_t { aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_size) { aubio_source_t * s = AUBIO_NEW(aubio_source_t); #ifdef __APPLE__ - s->source= (void *)new_aubio_source_apple_audio(uri, samplerate, hop_size); + s->source = (void *)new_aubio_source_apple_audio(uri, samplerate, hop_size); if (s->source) return s; #else /* __APPLE__ */ #if HAVE_SNDFILE - s->source= (void *)new_aubio_source_sndfile(uri, samplerate, hop_size); + s->source = (void *)new_aubio_source_sndfile(uri, samplerate, hop_size); if (s->source) return s; #endif /* HAVE_SNDFILE */ #endif /* __APPLE__ */ - if (s->source == NULL) return NULL; + if (s->source == NULL) { AUBIO_FREE(s); return NULL; } } void aubio_source_do(aubio_source_t * s, fvec_t * data, uint_t * read) { -- 2.26.2