Changeset 98d7aaa


Ignore:
Timestamp:
Dec 21, 2018, 3:00:34 PM (12 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/timestretch, master
Children:
fef012a
Parents:
48105ca
Message:

[py] check sink was created before calling del_aubio_sink

File:
1 edited

Legend:

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

    r48105ca r98d7aaa  
    151151Py_sink_del (Py_sink *self, PyObject *unused)
    152152{
    153   del_aubio_sink(self->o);
    154   free(self->mwrite_data.data);
     153  if (self->o) {
     154    del_aubio_sink(self->o);
     155    free(self->mwrite_data.data);
     156  }
    155157  if (self->uri) {
    156158    free(self->uri);
Note: See TracChangeset for help on using the changeset viewer.