From: Paul Brossier Date: Fri, 21 Dec 2018 14:01:10 +0000 (+0100) Subject: [examples] only delete sink if needed X-Git-Tag: 0.4.9~39 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=fef012aa0cf7c5ada731d2cbf8d0578e3ce4dfd6;p=aubio.git [examples] only delete sink if needed --- diff --git a/examples/utils.c b/examples/utils.c index 3fb3e0ec..c8e44a3a 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -184,7 +184,8 @@ void examples_common_process (aubio_process_func_t process_func, total_read, blocks, hop_size, source_uri, samplerate); del_aubio_source (this_source); - del_aubio_sink (this_sink); + if (this_sink) + del_aubio_sink (this_sink); } }