From 32df658d431908662e9e7e64d2431ca420214108 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 14 Jul 2012 18:37:50 -0600 Subject: [PATCH] src/io/source.c: do not try to delete if NULL --- src/io/source.c | 1 + 1 file changed, 1 insertion(+) 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__ */ -- 2.26.2