shithub: aubio

Download patch

ref: 3cc3fd8aea4704bf71e66226d55c99399fd9513a
parent: 422452b4197a513d074c45701419fb58816c99e6
author: Paul Brossier <[email protected]>
date: Sun Jan 26 11:20:37 EST 2014

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

--- a/python/ext/py-sink.c
+++ b/python/ext/py-sink.c
@@ -92,8 +92,7 @@
 static PyObject *
 Pyaubio_sink_close (Py_sink *self, PyObject *unused)
 {
-  del_aubio_sink (self->o);
-  self->o = NULL;
+  aubio_sink_close (self->o);
   Py_RETURN_NONE;
 }
 
--- a/python/ext/py-source.c
+++ b/python/ext/py-source.c
@@ -126,8 +126,7 @@
 static PyObject *
 Pyaubio_source_close (Py_source *self, PyObject *unused)
 {
-  del_aubio_source (self->o);
-  self->o = NULL;
+  aubio_source_close (self->o);
   Py_RETURN_NONE;
 }