Changeset 2bfbf33 for src


Ignore:
Timestamp:
Dec 21, 2018, 3:25:43 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, 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.