shithub: aubio

Download patch

ref: 32df658d431908662e9e7e64d2431ca420214108
parent: 420962ed06738620a3b4636b97c9b9a15e3d2fa6
author: Paul Brossier <piem@piem.org>
date: Sat Jul 14 14:37:50 EDT 2012

src/io/source.c: do not try to delete if NULL

--- a/src/io/source.c
+++ b/src/io/source.c
@@ -58,6 +58,7 @@
 }
 
 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__ */