Changeset b5bd70c


Ignore:
Timestamp:
Dec 16, 2018, 7:04:46 PM (12 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/timestretch, master
Children:
b5de3a9
Parents:
7fc8406
Message:

[source] always call del_aubio_source to clean-up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source.c

    r7fc8406 rb5bd70c  
    122122     " (no source built-in)\n", uri, samplerate, hop_size);
    123123#endif
    124   AUBIO_FREE(s);
     124  del_aubio_source(s);
    125125  return NULL;
    126126}
     
    139139
    140140void del_aubio_source(aubio_source_t * s) {
    141   if (!s) return;
    142   s->s_del((void *)s->source);
     141  if (s->s_del && s->source)
     142    s->s_del((void *)s->source);
    143143  AUBIO_FREE(s);
    144144}
Note: See TracChangeset for help on using the changeset viewer.