From: Paul Brossier Date: Tue, 8 Jan 2019 17:34:30 +0000 (+0100) Subject: [source] remove assert so tests pass in debug mode X-Git-Tag: 0.4.9~7 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=1878b506fecc1b5131c78c41cf3120eb9458b046;p=aubio.git [source] remove assert so tests pass in debug mode source and sink are the only objects which check for null pointers in del_, keep it this way to prevent breaking older code. --- diff --git a/src/io/source.c b/src/io/source.c index c3ab7c95..2fbbb6da 100644 --- a/src/io/source.c +++ b/src/io/source.c @@ -138,7 +138,7 @@ uint_t aubio_source_close(aubio_source_t * s) { } void del_aubio_source(aubio_source_t * s) { - AUBIO_ASSERT(s); + //AUBIO_ASSERT(s); if (s && s->s_del && s->source) s->s_del((void *)s->source); AUBIO_FREE(s);