Showing the changes to python/ext (2 of 2 files). Show all
Unified · Split
| @@ -92,8 +92,7 @@ AUBIO_MEMBERS_STOP(sink) · 91 unmodified lines | ||
| 92 | 92 | static PyObject * |
| 93 | 93 | Pyaubio_sink_close (Py_sink *self, PyObject *unused) |
| 94 | 94 | { |
| 95 | − del_aubio_sink (self->o); | |
| 96 | − self->o = NULL; | |
| 95 | + aubio_sink_close (self->o); | |
| 97 | 96 | Py_RETURN_NONE; |
| 98 | 97 | } |
| 99 | 98 | |
| @@ -126,8 +126,7 @@ Pyaubio_source_get_channels (Py_source *self, PyObject *unused) · 125 unmodified lines | ||
| 126 | 126 | static PyObject * |
| 127 | 127 | Pyaubio_source_close (Py_source *self, PyObject *unused) |
| 128 | 128 | { |
| 129 | − del_aubio_source (self->o); | |
| 130 | − self->o = NULL; | |
| 129 | + aubio_source_close (self->o); | |
| 131 | 130 | Py_RETURN_NONE; |
| 132 | 131 | } |
| 133 | 132 | |