shithub: aubio

Download patch

ref: 23be73614e4c93d57f05319239d7933777daeec5
parent: 6dda1c097403018d0b9f34dd117a24ca209db862
author: Paul Brossier <piem@piem.org>
date: Sun Feb 26 20:15:39 EST 2017

python/ext/py-source.c: raise on closing file failed

--- a/python/ext/py-source.c
+++ b/python/ext/py-source.c
@@ -242,7 +242,7 @@
 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;
 }