ref: 2bfbf3364f1912a2409e18e54dee361571234b00
parent: 8d4ffeb0efa5d26b790d67d985c720cbd3335f78
author: Paul Brossier <piem@piem.org>
date: Fri Dec 21 10:25:43 EST 2018
[sink] del_aubio_sink argument can be null Most del_ methods in aubio do not check if their argument is NULL, but del_aubio_sink used to, so we keep it this way to avoid breaking existing programs.
--- a/src/io/sink.c
+++ b/src/io/sink.c
@@ -136,7 +136,7 @@
void del_aubio_sink(aubio_sink_t * s) {
AUBIO_ASSERT(s);
- if (s->s_del && s->sink)
+ if (s && s->s_del && s->sink)
s->s_del((void *)s->sink);
AUBIO_FREE(s);
}