Merge branch 'feature/sink_flac' into feature/autosink
authorPaul Brossier <piem@piem.org>
Mon, 17 Dec 2018 15:42:29 +0000 (16:42 +0100)
committerPaul Brossier <piem@piem.org>
Mon, 17 Dec 2018 15:42:29 +0000 (16:42 +0100)
1  2 
src/io/sink.c

diff --cc src/io/sink.c
@@@ -189,12 -99,10 +189,12 @@@ aubio_sink_t * new_aubio_sink(const cha
  #endif /* HAVE_WAVWRITE */
  #if !defined(HAVE_WAVWRITE) && \
    !defined(HAVE_SNDFILE) && \
 -  !defined(HAVE_SINK_APPLE_AUDIO)
 +  !defined(HAVE_SINK_APPLE_AUDIO) && \
 +  !defined(HAVE_VORBISENC) && \
 +  !defined(HAVE_FLAC)
    AUBIO_ERROR("sink: failed creating '%s' at %dHz (no sink built-in)\n", uri, samplerate);
  #endif
-   AUBIO_FREE(s);
+   del_aubio_sink(s);
    return NULL;
  }