Changeset 2bfbf33 for src


Ignore:
Timestamp:
Dec 21, 2018, 3:25:43 PM (12 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/timestretch, master
Children:
a9f463c
Parents:
8d4ffeb
Message:

[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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink.c

    r8d4ffeb r2bfbf33  
    137137void del_aubio_sink(aubio_sink_t * s) {
    138138  AUBIO_ASSERT(s);
    139   if (s->s_del && s->sink)
     139  if (s && s->s_del && s->sink)
    140140    s->s_del((void *)s->sink);
    141141  AUBIO_FREE(s);
Note: See TracChangeset for help on using the changeset viewer.