Changeset 8d4ffeb


Ignore:
Timestamp:
Dec 21, 2018, 3:15:47 PM (5 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:
2bfbf33
Parents:
fef012a
Message:

[source] del_aubio_source argument can be null

Most del_ methods in aubio do not check if their argument is NULL, but
del_aubio_source used to, so we keep it this way to avoid breaking
existing programs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source.c

    rfef012a r8d4ffeb  
    140140void del_aubio_source(aubio_source_t * s) {
    141141  AUBIO_ASSERT(s);
    142   if (s->s_del && s->source)
     142  if (s && s->s_del && s->source)
    143143    s->s_del((void *)s->source);
    144144  AUBIO_FREE(s);
Note: See TracChangeset for help on using the changeset viewer.