Changeset 078dad8 for src


Ignore:
Timestamp:
Sep 28, 2016, 3:10:25 PM (8 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/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
afa21cdc
Parents:
0ff1b40
Message:

src/onset/onset.c: return null and clean-up if new_aubio_specdesc failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onset.c

    r0ff1b40 r078dad8  
    206206  o->pp = new_aubio_peakpicker();
    207207  o->od = new_aubio_specdesc(onset_mode,buf_size);
     208  if (o->od == NULL) goto beach_specdesc;
    208209  o->fftgrain = new_cvec(buf_size);
    209210  o->desc = new_fvec(1);
     
    220221  return o;
    221222
     223beach_specdesc:
     224  del_aubio_peakpicker(o->pp);
     225  del_aubio_pvoc(o->pv);
    222226beach:
    223227  AUBIO_FREE(o);
Note: See TracChangeset for help on using the changeset viewer.