From: Paul Brossier Date: Sun, 15 Jul 2012 18:18:49 +0000 (-0600) Subject: src/io/source.c: add missing free, indent X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42e6a5ef04b084af43a58aca1ecfb71c3f79d4a3;p=aubio.git src/io/source.c: add missing free, indent --- 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) {