History

python/ext/py-{source,sink}.c: use _close in .close()

Paul Brossier committed 12 years ago

Commit 3cc3fd81 parent 422452b2 files · +2 −4Browse files

Showing the changes to python (2 of 2 files). Show all

Unified · Split

2 files
  1. python/ext/py-sink.c +1 −2
  2. python/ext/py-source.c +1 −2
python/ext/py-sink.c+1−2
@@ -92,8 +92,7 @@ AUBIO_MEMBERS_STOP(sink) · 91 unmodified lines
9292 static PyObject *
9393 Pyaubio_sink_close (Py_sink *self, PyObject *unused)
9494 {
95− del_aubio_sink (self->o);
96− self->o = NULL;
95+ aubio_sink_close (self->o);
9796 Py_RETURN_NONE;
9897 }
9998
python/ext/py-source.c+1−2
@@ -126,8 +126,7 @@ Pyaubio_source_get_channels (Py_source *self, PyObject *unused) · 125 unmodified lines
126126 static PyObject *
127127 Pyaubio_source_close (Py_source *self, PyObject *unused)
128128 {
129− del_aubio_source (self->o);
130− self->o = NULL;
129+ aubio_source_close (self->o);
131130 Py_RETURN_NONE;
132131 }
133132

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t