Changeset 9e4e389


Ignore:
Timestamp:
May 4, 2016, 1:16:44 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:
1ae8d91
Parents:
6f4f117
Message:

python/lib/gen_code.py: make sure aubio object has been created before deleting it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_code.py

    r6f4f117 r9e4e389  
    354354        del_fn = get_name(self.del_proto)
    355355        out += """
    356     {del_fn}(self->o);
     356    if (self->o) {{
     357        {del_fn}(self->o);
     358    }}
    357359    Py_TYPE(self)->tp_free((PyObject *) self);
    358360}}
Note: See TracChangeset for help on using the changeset viewer.