Changeset 8cf51c4 for python/ext


Ignore:
Timestamp:
May 10, 2016, 11:21:37 PM (9 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:
f15b8cf
Parents:
ad9f999
Message:

python/ext/py-phasevoc.c: make sure to avoid double free

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-phasevoc.c

    rad9f999 r8cf51c4  
    8585  Py_XDECREF(self->output);
    8686  Py_XDECREF(self->routput);
    87   del_aubio_pvoc(self->o);
     87  if (self->o) {
     88    del_aubio_pvoc(self->o);
     89  }
    8890  Py_TYPE(self)->tp_free((PyObject *) self);
    8991}
Note: See TracChangeset for help on using the changeset viewer.