From: Paul Brossier Date: Mon, 27 Feb 2017 00:15:39 +0000 (+0100) Subject: python/ext/py-source.c: raise on closing file failed X-Git-Tag: 0.4.5~87 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=23be73614e4c93d57f05319239d7933777daeec5;p=aubio.git python/ext/py-source.c: raise on closing file failed --- diff --git a/python/ext/py-source.c b/python/ext/py-source.c index 71d6ba76..35a16b11 100644 --- a/python/ext/py-source.c +++ b/python/ext/py-source.c @@ -242,7 +242,7 @@ Pyaubio_source_get_channels (Py_source *self, PyObject *unused) static PyObject * Pyaubio_source_close (Py_source *self, PyObject *unused) { - aubio_source_close (self->o); + if (aubio_source_close(self->o) != 0) return NULL; Py_RETURN_NONE; }