From: Paul Brossier Date: Sun, 15 Jul 2012 00:37:50 +0000 (-0600) Subject: src/io/source.c: do not try to delete if NULL X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32df658d431908662e9e7e64d2431ca420214108;p=aubio.git src/io/source.c: do not try to delete if NULL --- diff --git a/src/io/source.c b/src/io/source.c index dab63105..7402ac7f 100644 --- a/src/io/source.c +++ b/src/io/source.c @@ -58,6 +58,7 @@ void aubio_source_do(aubio_source_t * s, fvec_t * data, uint_t * read) { } void del_aubio_source(aubio_source_t * s) { + if (!s) return; #ifdef __APPLE__ del_aubio_source_apple_audio((aubio_source_apple_audio_t *)s->source); #else /* __APPLE__ */