From 23be73614e4c93d57f05319239d7933777daeec5 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 27 Feb 2017 01:15:39 +0100 Subject: [PATCH] python/ext/py-source.c: raise on closing file failed --- python/ext/py-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0